|
| BinaryDecoder (Stream stream) |
|
void | ReadNull () |
| null is written as zero bytes More...
|
|
bool | ReadBoolean () |
| a boolean is written as a single byte whose value is either 0 (false) or 1 (true). More...
|
|
int | ReadInt () |
| int and long values are written using variable-length, zig-zag coding. More...
|
|
long | ReadLong () |
| int and long values are written using variable-length, zig-zag coding. More...
|
|
float | ReadFloat () |
| A float is written as 4 bytes. The float is converted into a 32-bit integer using a method equivalent to Java's floatToIntBits and then encoded in little-endian format. More...
|
|
double | ReadDouble () |
| A double is written as 8 bytes. The double is converted into a 64-bit integer using a method equivalent to Java's doubleToLongBits and then encoded in little-endian format. More...
|
|
byte[] | ReadBytes () |
| Bytes are encoded as a long followed by that many bytes of data. More...
|
|
string | ReadString () |
| Reads a string Avro type More...
|
|
int | ReadEnum () |
| Reads an enum AvroType More...
|
|
long | ReadArrayStart () |
| Starts reading the array Avro type. This, together with ReadArrayNext() is used to read the items from Avro array. This returns the number of entries in the initial chunk. After consuming the chunk, the client should call ReadArrayNext() to get the number of entries in the next chunk. The client should repeat the procedure until there are no more entries in the array. More...
|
|
long | ReadArrayNext () |
| See ReadArrayStart(). More...
|
|
long | ReadMapStart () |
| Starts reading the map Avro type. This, together with ReadMapNext() is used to read the entries from Avro map. This returns the number of entries in the initial chunk. After consuming the chunk, the client should call ReadMapNext() to get the number of entriess in the next chunk. The client should repeat the procedure until there are no more entries in the array. for (int n = decoder.ReadMapStart(); n > 0; n = decoder.ReadMapNext()) { // Read one map entry. } More...
|
|
long | ReadMapNext () |
| See ReadMapStart(). More...
|
|
int | ReadUnionIndex () |
| Reads the index, which determines the type in an union Avro type. More...
|
|
void | ReadFixed (byte[] buffer) |
| A convenience method for ReadFixed(buffer, 0, buffer.Length); More...
|
|
void | ReadFixed (byte[] buffer, int start, int length) |
| Read a Fixed Avro type of length. More...
|
|
void | SkipNull () |
| Skips a null Avro type on the stream. More...
|
|
void | SkipBoolean () |
| Skips a boolean Avro type on the stream. More...
|
|
void | SkipInt () |
| Skips a int Avro type on the stream. More...
|
|
void | SkipLong () |
| Skips a long Avro type on the stream. More...
|
|
void | SkipFloat () |
| Skips a float Avro type on the stream. More...
|
|
void | SkipDouble () |
| Skips a double Avro type on the stream. More...
|
|
void | SkipBytes () |
| Skips a bytes Avro type on the stream. More...
|
|
void | SkipString () |
| Skips a string Avro type on the stream. More...
|
|
void | SkipEnum () |
|
void | SkipUnionIndex () |
|
void | SkipFixed (int len) |
|
Decoder for Avro binary format
long Avro.IO.BinaryDecoder.ReadArrayStart |
( |
| ) |
|
|
inline |
Starts reading the array Avro type. This, together with ReadArrayNext() is used to read the items from Avro array. This returns the number of entries in the initial chunk. After consuming the chunk, the client should call ReadArrayNext() to get the number of entries in the next chunk. The client should repeat the procedure until there are no more entries in the array.
for (int n = decoder.ReadArrayStart(); n > 0; n = decoder.ReadArrayNext()) { // Read one array entry. }
- Returns
- The number of entries in the initial chunk, 0 if the array is empty.
Implements Avro.IO.Decoder.