Values¶
Bytes¶
Bytes encode themselves.
Integers¶
All integers are encoded using the LEB128 variable-length integer encoding, in either unsigned or signed variant.
Unsigned integers are encoded in unsigned LEB128 format.
As an additional constraint, the total number of bytes encoding a value of type
Signed integers are encoded in signed LEB128 format, which uses a two’s complement representation.
As an additional constraint, the total number of bytes encoding a value of type
Uninterpreted integers are encoded as signed integers.
Note
The side conditions
The side conditions on the value
Floating-Point¶
Floating-point values are encoded directly by their IEEE 754 (Section 3.4) bit pattern in little endian byte order:
Names¶
Names are encoded as a vector of bytes containing the Unicode (Section 3.9) UTF-8 encoding of the name’s character sequence.
The auxiliary
Note
Unlike in some other formats, name strings are not 0-terminated.