Completes the encoding and returns the ByteBuffer
Completes the encoding and returns the ByteBuffer
Completes the encoding and returns a sequence of ByteBuffers
Completes the encoding and returns a sequence of ByteBuffers
Encodes a single byte
Encodes an array of Bytes
Encodes an array of Bytes
Encodes a ByteBuffer by writing its length and content
Encodes a ByteBuffer by writing its length and content
ByteBuffer to encode
Encodes a single character using UTF-8 encoding
Encodes a single character using UTF-8 encoding
Character to encode
Encodes a double as 8 bytes
Encodes an array of Doubles
Encodes an array of Doubles
Encodes a float as 4 bytes
Encodes an array of Floats
Encodes an array of Floats
Encodes an integer efficiently in 1 to 5 bytes
0XXX XXXX = 0 to 127 1000 XXXX b0 = 128 to 4095 1001 XXXX b0 = -1 to -4095 1010 XXXX b0 b1 = 4096 to 1048575 1011 XXXX b0 b1 = -4096 to -1048575 1100 XXXX b0 b1 b2 = 1048575 to 268435455 1101 XXXX b0 b1 b2 = -1048575 to -268435455 1110 0000 b0 b1 b2 b3 = MinInt to MaxInt 1111 ???? = reserved for special codings
Encodes an integer efficiently in 1 to 5 bytes
0XXX XXXX = 0 to 127 1000 XXXX b0 = 128 to 4095 1001 XXXX b0 = -1 to -4095 1010 XXXX b0 b1 = 4096 to 1048575 1011 XXXX b0 b1 = -4096 to -1048575 1100 XXXX b0 b1 b2 = 1048575 to 268435455 1101 XXXX b0 b1 b2 = -1048575 to -268435455 1110 0000 b0 b1 b2 b3 = MinInt to MaxInt 1111 ???? = reserved for special codings
Integer to encode
Encodes an array of Integers
Encodes an array of Integers
Writes either a code byte (0-15) or an Int
Writes either a code byte (0-15) or an Int
Integer or a code byte
Encodes a long efficiently in 1 to 9 bytes
0XXX XXXX = 0 to 127 1000 XXXX b0 = 128 to 4095 1001 XXXX b0 = -1 to -4096 1010 XXXX b0 b1 = 4096 to 1048575 1011 XXXX b0 b1 = -4096 to -1048575 1100 XXXX b0 b1 b2 = 1048576 to 268435455 1101 XXXX b0 b1 b2 = -1048576 to -268435455 1110 0000 b0 b1 b2 b3 = MinInt to MaxInt 1110 0001 b0 b1 b2 b3 b4 b5 b6 b7 = anything larger 1111 ???? = reserved for special codings
Encodes a long efficiently in 1 to 9 bytes
0XXX XXXX = 0 to 127 1000 XXXX b0 = 128 to 4095 1001 XXXX b0 = -1 to -4096 1010 XXXX b0 b1 = 4096 to 1048575 1011 XXXX b0 b1 = -4096 to -1048575 1100 XXXX b0 b1 b2 = 1048576 to 268435455 1101 XXXX b0 b1 b2 = -1048576 to -268435455 1110 0000 b0 b1 b2 b3 = MinInt to MaxInt 1110 0001 b0 b1 b2 b3 b4 b5 b6 b7 = anything larger 1111 ???? = reserved for special codings
Long to encode
Writes either a code byte (0-15) or a Long
Writes either a code byte (0-15) or a Long
Long or a code byte
Encodes an integer in 32-bits
Encodes a long in 64-bits
Encodes a short integer
Encodes a short integer
Encodes a string using UTF8