Property | Type | Description | |
---|---|---|---|
Instance | BinaryEncoder |
Method | 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 |
Method | Description | |
---|---|---|
write ( Stream Stream ) : void |
Write leaf values.
|
public SetItemCount ( Stream Stream, long value ) : void | ||
Stream | Stream | |
value | long | |
return | void |
public WriteArrayEnd ( Stream Stream ) : void | ||
Stream | Stream | |
return | void |
public WriteArrayStart ( Stream Stream ) : void | ||
Stream | Stream | |
return | void |
public WriteBoolean ( Stream Stream, bool datum ) : void | ||
Stream | Stream | |
datum | bool | |
return | void |
public WriteBytes ( Stream Stream, byte value ) : void | ||
Stream | Stream | |
value | byte | |
return | void |
public WriteDouble ( Stream Stream, double datum ) : void | ||
Stream | Stream | |
datum | double | |
return | void |
public WriteFloat ( Stream Stream, float datum ) : void | ||
Stream | Stream | |
datum | float | |
return | void |
public WriteInt ( Stream Stream, int datum ) : void | ||
Stream | Stream | |
datum | int | |
return | void |
public WriteLong ( Stream Stream, long datum ) : void | ||
Stream | Stream | |
datum | long | |
return | void |
public WriteMapStart ( Stream Stream ) : void | ||
Stream | Stream | |
return | void |
public WriteString ( Stream Stream, string value ) : void | ||
Stream | Stream | |
value | string | |
return | void |
public static floatToRawIntBits ( float f ) : int | ||
f | float | |
return | int |