C# Class Avro.BinaryEncoder

Write leaf values.
Inheritance: Encoder
Afficher le fichier Open project: thirumg/Avro.NET

Méthodes publiques

Свойство Type Description
Instance BinaryEncoder

Méthodes publiques

Méthode Description
SetItemCount ( Stream Stream, long value ) : void
StartItem ( Stream Stream ) : void
WriteArrayEnd ( Stream Stream ) : void
WriteArrayStart ( Stream Stream ) : void
WriteBoolean ( Stream Stream, bool datum ) : void

a boolean is written as a single byte whose value is either 0 (false) or 1 (true).

WriteBytes ( Stream Stream, byte value ) : void

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

WriteDouble ( Stream Stream, double datum ) : void

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.

WriteFloat ( Stream Stream, float datum ) : void

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.

WriteInt ( Stream Stream, int datum ) : void

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

WriteLong ( Stream Stream, long datum ) : void

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

WriteMapEnd ( Stream Stream ) : void
WriteMapStart ( Stream Stream ) : void
WriteNull ( Stream Stream ) : void

null is written as zero bytes

WriteString ( Stream Stream, string value ) : void

A string is encoded as a long followed by that many bytes of UTF-8 encoded character data.

floatToRawIntBits ( float f ) : int

Private Methods

Méthode Description
write ( Stream Stream ) : void

Write leaf values.

Method Details

SetItemCount() public méthode

public SetItemCount ( Stream Stream, long value ) : void
Stream Stream
value long
Résultat void

StartItem() public méthode

public StartItem ( Stream Stream ) : void
Stream Stream
Résultat void

WriteArrayEnd() public méthode

public WriteArrayEnd ( Stream Stream ) : void
Stream Stream
Résultat void

WriteArrayStart() public méthode

public WriteArrayStart ( Stream Stream ) : void
Stream Stream
Résultat void

WriteBoolean() public méthode

a boolean is written as a single byte whose value is either 0 (false) or 1 (true).
public WriteBoolean ( Stream Stream, bool datum ) : void
Stream Stream
datum bool
Résultat void

WriteBytes() public méthode

Bytes are encoded as a long followed by that many bytes of data.
public WriteBytes ( Stream Stream, byte value ) : void
Stream Stream
value byte
Résultat void

WriteDouble() public méthode

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.
public WriteDouble ( Stream Stream, double datum ) : void
Stream Stream
datum double
Résultat void

WriteFloat() public méthode

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.
public WriteFloat ( Stream Stream, float datum ) : void
Stream Stream
datum float
Résultat void

WriteInt() public méthode

int and long values are written using variable-length, zig-zag coding.
public WriteInt ( Stream Stream, int datum ) : void
Stream Stream
datum int
Résultat void

WriteLong() public méthode

int and long values are written using variable-length, zig-zag coding.
public WriteLong ( Stream Stream, long datum ) : void
Stream Stream
datum long
Résultat void

WriteMapEnd() public méthode

public WriteMapEnd ( Stream Stream ) : void
Stream Stream
Résultat void

WriteMapStart() public méthode

public WriteMapStart ( Stream Stream ) : void
Stream Stream
Résultat void

WriteNull() public méthode

null is written as zero bytes
public WriteNull ( Stream Stream ) : void
Stream Stream
Résultat void

WriteString() public méthode

A string is encoded as a long followed by that many bytes of UTF-8 encoded character data.
public WriteString ( Stream Stream, string value ) : void
Stream Stream
value string
Résultat void

floatToRawIntBits() public static méthode

public static floatToRawIntBits ( float f ) : int
f float
Résultat int

Property Details

Instance public_oe static_oe property

public static BinaryEncoder Instance
Résultat BinaryEncoder