C# 클래스 RiakClient.Erlang.OtpInputStream

Provides a stream for decoding Erlang terms from external format.
상속: System.IO.MemoryStream
파일 보기 프로젝트 열기: basho/riak-dotnet-client 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
OnBadTag ( byte got ) : Exception

메소드 상세

IsLongTag() 공개 메소드

Can the tag be parsed as a long
public IsLongTag ( byte tag ) : bool
tag byte the tag to check
리턴 bool

OtpInputStream() 공개 메소드

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.
리턴 System

OtpInputStream() 공개 메소드

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.
리턴 System

Peek() 공개 메소드

Look ahead one position in the stream without consuming the byte found there.
public Peek ( ) : byte
리턴 byte

Peek1() 공개 메소드

Look ahead one position in the stream without consuming the byte found there.
public Peek1 ( ) : byte
리턴 byte

Peek1SkipVersion() 공개 메소드

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

Read1() 공개 메소드

Read one byte from the stream.
public Read1 ( ) : byte
리턴 byte

Read1SkipVersion() 공개 메소드

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

Read2BE() 공개 메소드

Read a two byte big endian integer from the stream.
public Read2BE ( ) : int
리턴 int

Read4BE() 공개 메소드

Read a four byte big endian integer from the stream.
public Read4BE ( ) : int
리턴 int

ReadAtom() 공개 메소드

Read an Erlang atom from the stream.
public ReadAtom ( ) : string
리턴 string

ReadBE() 공개 메소드

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

ReadBinary() 공개 메소드

Read an Erlang binary from the stream.
public ReadBinary ( ) : byte[]
리턴 byte[]

ReadBinaryAsString() 공개 메소드

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

ReadBoolean() 공개 메소드

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

ReadDouble() 공개 메소드

Read an Erlang float from the stream.
public ReadDouble ( ) : double
리턴 double

ReadListHead() 공개 메소드

Read a list header from the stream.
public ReadListHead ( ) : int
리턴 int

ReadLong() 공개 메소드

Read an array of bytes
public ReadLong ( ) : long
리턴 long

ReadN() 공개 메소드

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.
리턴 int

ReadN() 공개 메소드

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.
리턴 int

ReadNil() 공개 메소드

public ReadNil ( ) : int
리턴 int

ReadTupleHead() 공개 메소드

Read a tuple header from the stream.
public ReadTupleHead ( ) : int
리턴 int