C# Class Kafka.Client.Serialization.KafkaBinaryReader

Reads data from underlying stream using big endian bytes order for primitive types and UTF-8 encoding for strings.
Inheritance: System.IO.BinaryReader
Afficher le fichier Open project: precog/kafka Class Usage Examples

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Resets position pointer.

Method Details

Dispose() protected méthode

Resets position pointer.
protected Dispose ( bool disposing ) : void
disposing bool /// Not used ///
Résultat void

KafkaBinaryReader() public méthode

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. ///
Résultat System.IO

Read() public méthode

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
Résultat int

ReadInt16() public méthode

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
Résultat short

ReadInt32() public méthode

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
Résultat int

ReadInt64() public méthode

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
Résultat long

ReadTopic() public méthode

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