C# Class Avro.BinaryDecoder

Read leaf values.
Inheritance: Decoder
Afficher le fichier Open project: thirumg/Avro.NET

Méthodes publiques

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

Méthodes publiques

Méthode Description
ReadArrayStart ( Stream stream ) : long
ReadBool ( Stream Stream ) : bool

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

ReadBytes ( Stream Stream ) : byte[]

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

ReadDouble ( Stream Stream ) : double

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.

ReadFixed ( Stream Stream, byte buffer ) : void
ReadFloat ( Stream Stream ) : float

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.

ReadInt ( Stream Stream ) : int

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

ReadLong ( Stream Stream ) : long

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

ReadMapStart ( Stream Stream ) : long
ReadNull ( ) : object

null is written as zero bytes

ReadString ( Stream Stream ) : string
SkipBoolean ( Stream Stream ) : void
SkipBytes ( Stream Stream ) : void
SkipDouble ( Stream Stream ) : void
SkipFloat ( Stream Stream ) : void
SkipInt ( Stream Stream ) : void
SkipLong ( Stream Stream ) : void
SkipNull ( Stream Stream ) : void
SkipString ( Stream Stream ) : void
intBitsToFloat ( int value ) : float

Méthodes protégées

Méthode Description
doReadItemCount ( Stream Stream ) : long

Private Methods

Méthode Description
ReadFixed ( Stream Stream, byte buffer, int start, int length ) : void
Skip ( Stream Stream, int p ) : void
Skip ( Stream Stream, long p ) : void
ord ( byte p ) : byte
read ( Stream Stream ) : byte
read ( Stream Stream, long p ) : byte[]
skip ( long block_size ) : void

Method Details

ReadArrayStart() public méthode

public ReadArrayStart ( Stream stream ) : long
stream Stream
Résultat long

ReadBool() public méthode

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

ReadBytes() public méthode

Bytes are encoded as a long followed by that many bytes of data.
public ReadBytes ( Stream Stream ) : byte[]
Stream Stream
Résultat byte[]

ReadDouble() 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 ReadDouble ( Stream Stream ) : double
Stream Stream
Résultat double

ReadFixed() public méthode

public ReadFixed ( Stream Stream, byte buffer ) : void
Stream Stream
buffer byte
Résultat void

ReadFloat() 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 ReadFloat ( Stream Stream ) : float
Stream Stream
Résultat float

ReadInt() public méthode

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

ReadLong() public méthode

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

ReadMapStart() public méthode

public ReadMapStart ( Stream Stream ) : long
Stream Stream
Résultat long

ReadNull() public méthode

null is written as zero bytes
public ReadNull ( ) : object
Résultat object

ReadString() public méthode

public ReadString ( Stream Stream ) : string
Stream Stream
Résultat string

SkipBoolean() public méthode

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

SkipBytes() public méthode

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

SkipDouble() public méthode

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

SkipFloat() public méthode

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

SkipInt() public méthode

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

SkipLong() public méthode

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

SkipNull() public méthode

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

SkipString() public méthode

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

doReadItemCount() protected méthode

protected doReadItemCount ( Stream Stream ) : long
Stream Stream
Résultat long

intBitsToFloat() public static méthode

public static intBitsToFloat ( int value ) : float
value int
Résultat float

Property Details

Instance public_oe static_oe property

public static BinaryDecoder Instance
Résultat BinaryDecoder