Method | Description | |
---|---|---|
KafkaBinaryWriter ( Stream output ) : System.IO |
Initializes a new instance of the KafkaBinaryWriter class using big endian bytes order for primive types and UTF-8 encoding for strings.
|
|
Write ( int value ) : void |
Writes four-bytes signed integer to the current stream using big endian bytes order and advances the stream position by four bytes
|
|
Write ( long value ) : void |
Writes eight-bytes signed integer to the current stream using big endian bytes order and advances the stream position by eight bytes
|
|
Write ( short value ) : void |
Writes two-bytes signed integer to the current stream using big endian bytes order and advances the stream position by two bytes
|
|
WriteTopic ( string topic, string encoding ) : void |
Writes topic and his size into underlying stream using given encoding.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Flushes data into stream and resets position pointer.
|
|
KafkaBinaryWriter ( ) : System.IO |
Initializes a new instance of the KafkaBinaryWriter class using big endian bytes order for primive types and UTF-8 encoding for strings.
|
protected Dispose ( bool disposing ) : void | ||
disposing | bool | /// Not used /// |
return | void |
public KafkaBinaryWriter ( Stream output ) : System.IO | ||
output | Stream | /// The output stream. /// |
return | System.IO |
public Write ( int value ) : void | ||
value | int | /// The value to write. /// |
return | void |
public Write ( long value ) : void | ||
value | long | /// The value to write. /// |
return | void |
public Write ( short value ) : void | ||
value | short | /// The value to write. /// |
return | void |
public WriteTopic ( string topic, string encoding ) : void | ||
topic | string | /// The topic to write. /// |
encoding | string | /// The encoding to use. /// |
return | void |