Write leaf values.
More...
|
|
| BinaryEncoder (Stream stream) |
| |
| void | WriteNull () |
| | null is written as zero bytes More...
|
| |
| void | WriteBoolean (bool b) |
| | true is written as 1 and false 0. More...
|
| |
| void | WriteInt (int value) |
| | int and long values are written using variable-length, zig-zag coding. More...
|
| |
| void | WriteLong (long value) |
| | int and long values are written using variable-length, zig-zag coding. More...
|
| |
| void | WriteFloat (float value) |
| | 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...
|
| |
| void | WriteDouble (double value) |
| | 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...
|
| |
| void | WriteBytes (byte[] value) |
| | Bytes are encoded as a long followed by that many bytes of data. More...
|
| |
| void | WriteString (string value) |
| | A string is encoded as a long followed by that many bytes of UTF-8 encoded character data. More...
|
| |
|
void | WriteEnum (int value) |
| |
|
void | StartItem () |
| |
|
void | SetItemCount (long value) |
| |
|
void | WriteArrayStart () |
| |
|
void | WriteArrayEnd () |
| |
|
void | WriteMapStart () |
| |
|
void | WriteMapEnd () |
| |
|
void | WriteUnionIndex (int value) |
| |
|
void | WriteFixed (byte[] data) |
| |
|
void | WriteFixed (byte[] data, int start, int len) |
| |
|
void | Flush () |
| |
◆ WriteBoolean()
| void Avro.IO.BinaryEncoder.WriteBoolean |
( |
bool |
b | ) |
|
|
inline |
◆ WriteBytes()
| void Avro.IO.BinaryEncoder.WriteBytes |
( |
byte [] |
value | ) |
|
|
inline |
Bytes are encoded as a long followed by that many bytes of data.
- Parameters
-
Implements Avro.IO.Encoder.
◆ WriteDouble()
| void Avro.IO.BinaryEncoder.WriteDouble |
( |
double |
value | ) |
|
|
inline |
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.
- Parameters
-
Implements Avro.IO.Encoder.
◆ WriteFloat()
| void Avro.IO.BinaryEncoder.WriteFloat |
( |
float |
value | ) |
|
|
inline |
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.
- Parameters
-
Implements Avro.IO.Encoder.
◆ WriteInt()
| void Avro.IO.BinaryEncoder.WriteInt |
( |
int |
value | ) |
|
|
inline |
int and long values are written using variable-length, zig-zag coding.
- Parameters
-
Implements Avro.IO.Encoder.
◆ WriteLong()
| void Avro.IO.BinaryEncoder.WriteLong |
( |
long |
value | ) |
|
|
inline |
int and long values are written using variable-length, zig-zag coding.
- Parameters
-
Implements Avro.IO.Encoder.
◆ WriteNull()
| void Avro.IO.BinaryEncoder.WriteNull |
( |
| ) |
|
|
inline |
◆ WriteString()
| void Avro.IO.BinaryEncoder.WriteString |
( |
string |
value | ) |
|
|
inline |
A string is encoded as a long followed by that many bytes of UTF-8 encoded character data.
- Parameters
-
Implements Avro.IO.Encoder.
The documentation for this class was generated from the following file:
- src/apache/main/IO/BinaryEncoder.cs