Property | Type | Description | |
---|---|---|---|
Instance | BinaryDecoder |
Method | 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 |
Method | Description | |
---|---|---|
doReadItemCount ( Stream Stream ) : long |
Method | 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 |
public ReadArrayStart ( Stream stream ) : long | ||
stream | Stream | |
return | long |
public ReadFixed ( Stream Stream, byte buffer ) : void | ||
Stream | Stream | |
buffer | byte | |
return | void |
protected doReadItemCount ( Stream Stream ) : long | ||
Stream | Stream | |
return | long |
public static intBitsToFloat ( int value ) : float | ||
value | int | |
return | float |