Expand description
Big-endian binary reading and writing, the equivalent of struct.unpack /
struct.pack with > formats.
Structs§
- Reader
- A cursor over big-endian data.
Traits§
- Write
Bytes - Appending big-endian values to a byte buffer.
Functions§
- calc_
checksum - The sfnt checksum of a block of data, padded with NUL bytes to a multiple of
four (
calcChecksum). - fit
- Converts an integer to a narrower type, failing like
struct.packdoes when the value is out of range. - get_
search_ range searchRange,entrySelectorandrangeShiftfor a binary search header (getSearchRange).- max_
power_ of_ two - The highest exponent such that
2**exponent <= x, or 0 (maxPowerOfTwo). - pad4
- Pads
datawith NUL bytes to a multiple of four.