Kinetica   C#   API  Version 7.2.3.0
Avro.IO.BinaryEncoder Class Reference

Write leaf values. More...

+ Inheritance diagram for Avro.IO.BinaryEncoder:
+ Collaboration diagram for Avro.IO.BinaryEncoder:

Public Member Functions

 BinaryEncoder ()
 
 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. More...
 
void WriteDouble (double value)
 A double is written as 8 bytes. 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 ()
 

Detailed Description

Write leaf values.

Definition at line 27 of file BinaryEncoder.cs.

Constructor & Destructor Documentation

◆ BinaryEncoder() [1/2]

Avro.IO.BinaryEncoder.BinaryEncoder ( )
inline

Definition at line 31 of file BinaryEncoder.cs.

◆ BinaryEncoder() [2/2]

Avro.IO.BinaryEncoder.BinaryEncoder ( Stream  stream)
inline

Definition at line 35 of file BinaryEncoder.cs.

Member Function Documentation

◆ Flush()

void Avro.IO.BinaryEncoder.Flush ( )
inline

Definition at line 190 of file BinaryEncoder.cs.

◆ SetItemCount()

void Avro.IO.BinaryEncoder.SetItemCount ( long  value)
inline

Implements Avro.IO.Encoder.

Definition at line 142 of file BinaryEncoder.cs.

◆ StartItem()

void Avro.IO.BinaryEncoder.StartItem ( )
inline

Implements Avro.IO.Encoder.

Definition at line 138 of file BinaryEncoder.cs.

◆ WriteArrayEnd()

void Avro.IO.BinaryEncoder.WriteArrayEnd ( )
inline

Implements Avro.IO.Encoder.

Definition at line 151 of file BinaryEncoder.cs.

◆ WriteArrayStart()

void Avro.IO.BinaryEncoder.WriteArrayStart ( )
inline

Implements Avro.IO.Encoder.

Definition at line 147 of file BinaryEncoder.cs.

◆ WriteBoolean()

void Avro.IO.BinaryEncoder.WriteBoolean ( bool  b)
inline

true is written as 1 and false 0.

Parameters
bBoolean value to write

Implements Avro.IO.Encoder.

Definition at line 51 of file BinaryEncoder.cs.

◆ WriteBytes()

void Avro.IO.BinaryEncoder.WriteBytes ( byte []  value)
inline

Bytes are encoded as a long followed by that many bytes of data.

Parameters
value

Implements Avro.IO.Encoder.

Definition at line 117 of file BinaryEncoder.cs.

◆ 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
value

Implements Avro.IO.Encoder.

Definition at line 97 of file BinaryEncoder.cs.

◆ WriteEnum()

void Avro.IO.BinaryEncoder.WriteEnum ( int  value)
inline

Implements Avro.IO.Encoder.

Definition at line 133 of file BinaryEncoder.cs.

◆ WriteFixed() [1/2]

void Avro.IO.BinaryEncoder.WriteFixed ( byte []  data)
inline

Implements Avro.IO.Encoder.

Definition at line 170 of file BinaryEncoder.cs.

◆ WriteFixed() [2/2]

void Avro.IO.BinaryEncoder.WriteFixed ( byte []  data,
int  start,
int  len 
)
inline

Implements Avro.IO.Encoder.

Definition at line 175 of file BinaryEncoder.cs.

◆ 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
value

Implements Avro.IO.Encoder.

Definition at line 85 of file BinaryEncoder.cs.

◆ WriteInt()

void Avro.IO.BinaryEncoder.WriteInt ( int  value)
inline

int and long values are written using variable-length, zig-zag coding.

Parameters
datum

Implements Avro.IO.Encoder.

Definition at line 60 of file BinaryEncoder.cs.

◆ WriteLong()

void Avro.IO.BinaryEncoder.WriteLong ( long  value)
inline

int and long values are written using variable-length, zig-zag coding.

Parameters
datum

Implements Avro.IO.Encoder.

Definition at line 68 of file BinaryEncoder.cs.

◆ WriteMapEnd()

void Avro.IO.BinaryEncoder.WriteMapEnd ( )
inline

Implements Avro.IO.Encoder.

Definition at line 160 of file BinaryEncoder.cs.

◆ WriteMapStart()

void Avro.IO.BinaryEncoder.WriteMapStart ( )
inline

Implements Avro.IO.Encoder.

Definition at line 156 of file BinaryEncoder.cs.

◆ WriteNull()

void Avro.IO.BinaryEncoder.WriteNull ( )
inline

null is written as zero bytes

Implements Avro.IO.Encoder.

Definition at line 43 of file BinaryEncoder.cs.

◆ 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
value

Implements Avro.IO.Encoder.

Definition at line 128 of file BinaryEncoder.cs.

◆ WriteUnionIndex()

void Avro.IO.BinaryEncoder.WriteUnionIndex ( int  value)
inline

Implements Avro.IO.Encoder.

Definition at line 165 of file BinaryEncoder.cs.


The documentation for this class was generated from the following file: