C# Class RiakClient.Erlang.OtpOutputStream

Provides a stream for encoding Erlang terms to external format, for transmission or storage.
Inheritance: System.IO.MemoryStream
Afficher le fichier Open project: basho/riak-dotnet-client Class Usage Examples

Méthodes publiques

Méthode Description
OtpOutputStream ( ) : System

Initializes a new instance of the OtpOutputStream class with the default initial MemoryStreamsize.

Write ( byte b ) : void

Write one byte to the stream.

Write2BE ( long n ) : void

Write the low two bytes of a value to the stream in big endian order.

Write4BE ( long n ) : void

Write the low four bytes of a value to the stream in big endian order.

Write8BE ( long n ) : void

Write the low eight (all) bytes of a value to the stream in big endian order.

WriteAtom ( string atom ) : void

Write a string to the stream as an Erlang atom. Assumes ISO-8859-1 encoding. This will throw an exception if the string can't be converted.

WriteBinary ( byte bin ) : void

Write an array of bytes to the stream as an Erlang binary.

WriteBoolean ( bool b ) : void

Write a bool value to the stream as the Erlang atom 'true' or 'false'.

WriteDouble ( double d ) : void

Write a double value to the stream.

WriteListHead ( int arity ) : void

Write an Erlang list header to the stream. After calling this method, you must write 'arity' elements to the stream followed by nil, or it will not be possible to decode it later.

WriteLong ( long l ) : void

Write a long to the stream.

WriteNil ( ) : void

Write an empty Erlang list to the stream.

WriteStringAsBinary ( string s ) : void

Write a string as a UTF-8 encoded array of bytes to the stream as an Erlang binary.

WriteTupleHead ( int arity ) : void

Write an Erlang tuple header to the stream. After calling this method, you must write 'arity' elements to the stream or it will not be possible to decode it later.

Method Details

OtpOutputStream() public méthode

Initializes a new instance of the OtpOutputStream class with the default initial MemoryStreamsize.
public OtpOutputStream ( ) : System
Résultat System

Write() public méthode

Write one byte to the stream.
public Write ( byte b ) : void
b byte The byte to write
Résultat void

Write2BE() public méthode

Write the low two bytes of a value to the stream in big endian order.
public Write2BE ( long n ) : void
n long The value to use.
Résultat void

Write4BE() public méthode

Write the low four bytes of a value to the stream in big endian order.
public Write4BE ( long n ) : void
n long The value to use.
Résultat void

Write8BE() public méthode

Write the low eight (all) bytes of a value to the stream in big endian order.
public Write8BE ( long n ) : void
n long The value to use.
Résultat void

WriteAtom() public méthode

Write a string to the stream as an Erlang atom. Assumes ISO-8859-1 encoding. This will throw an exception if the string can't be converted.
public WriteAtom ( string atom ) : void
atom string The string to write.
Résultat void

WriteBinary() public méthode

Write an array of bytes to the stream as an Erlang binary.
public WriteBinary ( byte bin ) : void
bin byte The array of bytes to write.
Résultat void

WriteBoolean() public méthode

Write a bool value to the stream as the Erlang atom 'true' or 'false'.
public WriteBoolean ( bool b ) : void
b bool The boolean value to write.
Résultat void

WriteDouble() public méthode

Write a double value to the stream.
public WriteDouble ( double d ) : void
d double The double to use.
Résultat void

WriteListHead() public méthode

Write an Erlang list header to the stream. After calling this method, you must write 'arity' elements to the stream followed by nil, or it will not be possible to decode it later.
public WriteListHead ( int arity ) : void
arity int The number of elements in the list.
Résultat void

WriteLong() public méthode

Write a long to the stream.
public WriteLong ( long l ) : void
l long The long to use.
Résultat void

WriteNil() public méthode

Write an empty Erlang list to the stream.
public WriteNil ( ) : void
Résultat void

WriteStringAsBinary() public méthode

Write a string as a UTF-8 encoded array of bytes to the stream as an Erlang binary.
public WriteStringAsBinary ( string s ) : void
s string The string to write.
Résultat void

WriteTupleHead() public méthode

Write an Erlang tuple header to the stream. After calling this method, you must write 'arity' elements to the stream or it will not be possible to decode it later.
public WriteTupleHead ( int arity ) : void
arity int The number of elements in the tuple.
Résultat void