static boolean |
Encoding.hasContent(Encoder encoder) |
Check whether encoder is empty.
|
static int |
Encoding.length(Encoder encoder) |
The current length of the encoded data.
|
static void |
Encoding.set(Encoder encoder,
int pos,
int num) |
Write one byte at a specific position.
|
static void |
Encoding.setUint16(Encoder encoder,
int pos,
int num) |
Write two bytes as an unsigned integer at a specific location.
|
static void |
Encoding.setUint32(Encoder encoder,
int pos,
int num) |
Write two bytes as an unsigned integer at a specific location.
|
static void |
Encoding.setUint8(Encoder encoder,
int pos,
int num) |
Write one byte as an unsigned Integer at a specific location.
|
static Uint8Array |
Encoding.toUint8Array(Encoder encoder) |
Transform to Uint8Array.
|
static void |
Encoding.verifyLen(Encoder encoder,
int len) |
Verify that it is possible to write `len` bytes wtihout checking.
|
static void |
Encoding.write(Encoder encoder,
int num) |
Write one byte to the encoder.
|
static void |
Encoding.write(Encoder encoder,
long num) |
Write one byte to the encoder.
|
static void |
Encoding.writeAny(Encoder encoder,
java.lang.Object data) |
Encode data with efficient binary format.
|
static void |
Encoding.writeBigInt64(Encoder encoder,
long num) |
|
static void |
Encoding.writeBinaryEncoder(Encoder encoder,
Encoder append) |
Write the content of another Encoder.
|
static void |
Encoding.writeFloat32(Encoder encoder,
float num) |
|
static void |
Encoding.writeFloat64(Encoder encoder,
double num) |
|
static void |
Encoding.writeTerminatedString(Encoder encoder,
java.lang.String str) |
Write a string terminated by a special byte sequence.
|
static void |
Encoding.writeTerminatedUint8Array(Encoder encoder,
Uint8Array buf) |
Write a terminating Uint8Array.
|
static void |
Encoding.writeUint16(Encoder encoder,
int num) |
Write two bytes as an unsigned integer.
|
static void |
Encoding.writeUint32(Encoder encoder,
int num) |
Write two bytes as an unsigned integer
|
static void |
Encoding.writeUint32BigEndian(Encoder encoder,
int num) |
Write two bytes as an unsigned integer in big endian order.
|
static void |
Encoding.writeUint8(Encoder encoder,
int num) |
Write one byte as an unsigned integer.
|
static void |
Encoding.writeUint8Array(Encoder encoder,
Uint8Array uint8Array) |
Append fixed-length Uint8Array to the encoder.
|
static void |
Encoding.writeVarInt(Encoder encoder,
int num) |
Write a variable length integer.
|
static void |
Encoding.writeVarInt(Encoder encoder,
long num) |
Write a variable length long.
|
static void |
Encoding.writeVarString(Encoder encoder,
java.lang.String str) |
Write a variable length string.
|
static void |
Encoding.writeVarUint(Encoder encoder,
int num) |
Write a variable length unsigned integer.
|
static void |
Encoding.writeVarUint(Encoder encoder,
long num) |
Write a variable length unsigned long.
|
static void |
Encoding.writeVarUint8Array(Encoder encoder,
Uint8Array uint8Array) |
Append an Uint8Array to Encoder.
|