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 a single byte
Byte to encode
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 a double as 8 bytes
Double to encode
Encodes a float as 4 bytes
Encodes a float as 4 bytes
Float to encode
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 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
Encodes an integer in 32-bits
Encodes an integer in 32-bits
Integer to encode
Encodes a long in 64-bits
Encodes a long in 64-bits
Long to encode
Encodes a string using UTF8
Encodes a string using UTF8
String to encode