Word32 package:bytebuild
Note: This results in a zigzag encoded number. Avro does not have
unsigned types.
Requires exactly 4 bytes. Dump the octets of a 32-bit word in a
big-endian fashion.
Encodes an unsigned 16-bit integer as decimal. This encoding never
starts with a zero unless the argument was zero.
Requires exactly 4 bytes. Dump the octets of a 32-bit word in a
little-endian fashion.
Encode a 32-bit word with LEB-128.
Encode a 32-bit unsigned integer as hexadecimal, zero-padding the
encoding to 8 digits. This uses uppercase for the alphabetical digits.
For example, this encodes the number 1022 as 000003FE.
Encode a 32-bit word with VLQ.
Requires exactly 4 bytes. Dump the octets of a 32-bit word in a
big-endian fashion.
Requires up to 10 bytes. Encodes an unsigned 32-bit integer as
decimal. This encoding never starts with a zero unless the argument
was zero.
Requires exactly 4 bytes. Dump the octets of a 32-bit word in a
little-endian fashion.
Encode a 32-bit word with LEB-128.
Requires exactly 8 bytes. Encodes a 32-bit unsigned integer as
hexadecimal, zero-padding the encoding to 8 digits. This uses
lowercase for the alphabetical digits.
Requires exactly 8 bytes. Encodes a 32-bit unsigned integer as
hexadecimal, zero-padding the encoding to 8 digits. This uses
uppercase for the alphabetical digits.
Encode a 32-bit word with VLQ (also known as VByte, Varint, VInt).