Decodes a single byte
Decodes a single byte
Decodes a UTF-8 encoded character (1-3 bytes) and produces a single UTF-16 character
Decodes a UTF-8 encoded character (1-3 bytes) and produces a single UTF-16 character
Decodes a 64-bit double (8 bytes)
Decodes a 64-bit double (8 bytes)
Decodes a 32-bit float (4 bytes)
Decodes a 32-bit float (4 bytes)
Decodes a 32-bit integer (1-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 = 1048576 to 268435455 1101 XXXX b0 b1 b2 = -1048576 to -268435455 1110 0000 b0 b1 b2 b3 = MinInt to MaxInt 1111 ???? = reserved for special codings
Decodes a 32-bit integer (1-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 = 1048576 to 268435455 1101 XXXX b0 b1 b2 = -1048576 to -268435455 1110 0000 b0 b1 b2 b3 = MinInt to MaxInt 1111 ???? = reserved for special codings
Decodes a 32-bit integer, or returns the first byte if it doesn't contain a valid encoding marker
Decodes a 32-bit integer, or returns the first byte if it doesn't contain a valid encoding marker
Decodes a 64-bit integer (1-9 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 = 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
Decodes a 64-bit integer (1-9 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 = 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
Decodes a 64-bit long, or returns the first byte if it doesn't contain a valid encoding marker
Decodes a 64-bit long, or returns the first byte if it doesn't contain a valid encoding marker
Decodes a UTF-8 encoded string whose length is already known
Decodes a UTF-8 encoded string whose length is already known
Length of the string (in bytes)
Decodes a UTF-8 encoded string
Decodes a UTF-8 encoded string