wiithon.binary
Primitives for reading and writing binary data.
Wii discs are big endian, so BinaryReader and
BinaryWriter default to big endian, with explicit
little endian variants where a format needs them.
Modules
- wiithon.binary.reader module
Typed reads over a stream: integers, floats, strings, raw blocks.
- wiithon.binary.writer module
The writing counterpart, with padding and fixed-size strings.
- wiithon.binary.align module
Rounding an offset up to a boundary.
- wiithon.binary.common module
Shared defaults, such as the string encoding.
Note
u32_shifted reads and writes the offsets that Wii discs store
right-shifted by two bits. See Wii ISO Structure and Decryption Process.