C# Class RiakClient.Erlang.OtpInputStream

Provides a stream for decoding Erlang terms from external format.
Inheritance: System.IO.MemoryStream
Afficher le fichier Open project: basho/riak-dotnet-client Class Usage Examples

Méthodes publiques

Méthode Description
IsLongTag ( byte tag ) : bool

Can the tag be parsed as a long

OtpInputStream ( byte buffer ) : System

Initializes a new instance of the OtpInputStream class from a buffer containing encoded Erlang terms.

OtpInputStream ( byte buffer, int index, int count ) : System

Initializes a new instance of the OtpInputStream class from a buffer containing encoded Erlang terms at the given offset and length.

Peek ( ) : byte

Look ahead one position in the stream without consuming the byte found there.

Peek1 ( ) : byte

Look ahead one position in the stream without consuming the byte found there.

Peek1SkipVersion ( ) : byte

Look ahead one position in the stream, skipping the version tag if it's read.

Read1 ( ) : byte

Read one byte from the stream.

Read1SkipVersion ( ) : byte

Read one byte from the stream, skipping the version tag if it's read.

Read2BE ( ) : int

Read a two byte big endian integer from the stream.

Read4BE ( ) : int

Read a four byte big endian integer from the stream.

ReadAtom ( ) : string

Read an Erlang atom from the stream.

ReadBE ( int n ) : long

Read a bigendian integer from the stream.

ReadBinary ( ) : byte[]

Read an Erlang binary from the stream.

ReadBinaryAsString ( ) : string

Read an Erlang binary from the stream and converts to a UTF-8 string.

ReadBoolean ( ) : bool

Read an Erlang atom from the stream and interpret the value as a boolean.

ReadDouble ( ) : double

Read an Erlang float from the stream.

ReadListHead ( ) : int

Read a list header from the stream.

ReadLong ( ) : long

Read an array of bytes

ReadN ( byte buffer ) : int

Read an array of bytes from the stream into the buffer. The method reads at most buffer.Length bytes from the input stream.

ReadN ( byte buffer, int offset, int count ) : int

Read an array of bytes from the stream. The method reads at most len bytes from the input stream into offset off of the buffer.

ReadNil ( ) : int
ReadTupleHead ( ) : int

Read a tuple header from the stream.

Private Methods

Méthode Description
OnBadTag ( byte got ) : Exception

Method Details

IsLongTag() public méthode

Can the tag be parsed as a long
public IsLongTag ( byte tag ) : bool
tag byte the tag to check
Résultat bool

OtpInputStream() public méthode

Initializes a new instance of the OtpInputStream class from a buffer containing encoded Erlang terms.
public OtpInputStream ( byte buffer ) : System
buffer byte The buffer containing Erlang terms.
Résultat System

OtpInputStream() public méthode

Initializes a new instance of the OtpInputStream class from a buffer containing encoded Erlang terms at the given offset and length.
public OtpInputStream ( byte buffer, int index, int count ) : System
buffer byte The buffer containing Erlang terms.
index int The index into buffer at which the stream begins.
count int The length of the stream in bytes.
Résultat System

Peek() public méthode

Look ahead one position in the stream without consuming the byte found there.
public Peek ( ) : byte
Résultat byte

Peek1() public méthode

Look ahead one position in the stream without consuming the byte found there.
public Peek1 ( ) : byte
Résultat byte

Peek1SkipVersion() public méthode

Look ahead one position in the stream, skipping the version tag if it's read.
public Peek1SkipVersion ( ) : byte
Résultat byte

Read1() public méthode

Read one byte from the stream.
public Read1 ( ) : byte
Résultat byte

Read1SkipVersion() public méthode

Read one byte from the stream, skipping the version tag if it's read.
public Read1SkipVersion ( ) : byte
Résultat byte

Read2BE() public méthode

Read a two byte big endian integer from the stream.
public Read2BE ( ) : int
Résultat int

Read4BE() public méthode

Read a four byte big endian integer from the stream.
public Read4BE ( ) : int
Résultat int

ReadAtom() public méthode

Read an Erlang atom from the stream.
public ReadAtom ( ) : string
Résultat string

ReadBE() public méthode

Read a bigendian integer from the stream.
public ReadBE ( int n ) : long
n int The number of bytes to read
Résultat long

ReadBinary() public méthode

Read an Erlang binary from the stream.
public ReadBinary ( ) : byte[]
Résultat byte[]

ReadBinaryAsString() public méthode

Read an Erlang binary from the stream and converts to a UTF-8 string.
public ReadBinaryAsString ( ) : string
Résultat string

ReadBoolean() public méthode

Read an Erlang atom from the stream and interpret the value as a boolean.
public ReadBoolean ( ) : bool
Résultat bool

ReadDouble() public méthode

Read an Erlang float from the stream.
public ReadDouble ( ) : double
Résultat double

ReadListHead() public méthode

Read a list header from the stream.
public ReadListHead ( ) : int
Résultat int

ReadLong() public méthode

Read an array of bytes
public ReadLong ( ) : long
Résultat long

ReadN() public méthode

Read an array of bytes from the stream into the buffer. The method reads at most buffer.Length bytes from the input stream.
public ReadN ( byte buffer ) : int
buffer byte The buffer into which to read data.
Résultat int

ReadN() public méthode

Read an array of bytes from the stream. The method reads at most len bytes from the input stream into offset off of the buffer.
public ReadN ( byte buffer, int offset, int count ) : int
buffer byte The buffer into which to read data.
offset int The offset in the buffer into which to read data.
count int The number of bytes to read.
Résultat int

ReadNil() public méthode

public ReadNil ( ) : int
Résultat int

ReadTupleHead() public méthode

Read a tuple header from the stream.
public ReadTupleHead ( ) : int
Résultat int