2.1.2 MultiByteInt31
This structure describes an unsigned 31-bit integer value in a variable- length packet. The size of the number to be stored determines the size of the packet according to the following mapping.
Unsigned integer range |
Packet size |
Packet reference |
---|---|---|
0x00 to 0x7F |
1 byte |
MultiByteInt31-(1 Byte) |
0x0080 to 0x3FFF |
2 bytes |
MultiByteInt31-(2 Bytes) |
0x004000 to 0x1FFFFF |
3 bytes |
MultiByteInt31-(3 Bytes) |
0x00200000 to 0x0FFFFFFF |
4 bytes |
MultiByteInt31-(4 Bytes) |
0x0010000000 to 0x007FFFFFFF |
5 bytes |
MultiByteInt31-(5 Bytes) |