C# 클래스 Kafka.Client.Serialization.KafkaBinaryReader

Reads data from underlying stream using big endian bytes order for primitive types and UTF-8 encoding for strings.
상속: System.IO.BinaryReader
파일 보기 프로젝트 열기: precog/kafka 1 사용 예제들

공개 메소드들

메소드 설명
KafkaBinaryReader ( Stream input ) : System.IO

Initializes a new instance of the KafkaBinaryReader class using big endian bytes order for primive types and UTF-8 encoding for strings.

Read ( ) : int

Reads four-bytes signed integer from the current stream using big endian bytes order and advances the stream position by four bytes

ReadInt16 ( ) : short

Reads two-bytes signed integer from the current stream using big endian bytes order and advances the stream position by two bytes

ReadInt32 ( ) : int

Reads four-bytes signed integer from the current stream using big endian bytes order and advances the stream position by four bytes

ReadInt64 ( ) : long

Reads eight-bytes signed integer from the current stream using big endian bytes order and advances the stream position by eight bytes

ReadTopic ( string encoding ) : string

Reads fixed-length topic from underlying stream using given encoding.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Resets position pointer.

메소드 상세

Dispose() 보호된 메소드

Resets position pointer.
protected Dispose ( bool disposing ) : void
disposing bool /// Not used ///
리턴 void

KafkaBinaryReader() 공개 메소드

Initializes a new instance of the KafkaBinaryReader class using big endian bytes order for primive types and UTF-8 encoding for strings.
public KafkaBinaryReader ( Stream input ) : System.IO
input System.IO.Stream /// The input stream. ///
리턴 System.IO

Read() 공개 메소드

Reads four-bytes signed integer from the current stream using big endian bytes order and advances the stream position by four bytes
public Read ( ) : int
리턴 int

ReadInt16() 공개 메소드

Reads two-bytes signed integer from the current stream using big endian bytes order and advances the stream position by two bytes
public ReadInt16 ( ) : short
리턴 short

ReadInt32() 공개 메소드

Reads four-bytes signed integer from the current stream using big endian bytes order and advances the stream position by four bytes
public ReadInt32 ( ) : int
리턴 int

ReadInt64() 공개 메소드

Reads eight-bytes signed integer from the current stream using big endian bytes order and advances the stream position by eight bytes
public ReadInt64 ( ) : long
리턴 long

ReadTopic() 공개 메소드

Reads fixed-length topic from underlying stream using given encoding.
public ReadTopic ( string encoding ) : string
encoding string /// The encoding to use. ///
리턴 string