4 ms·
Kuinox could be referring to bit field types that are packed in a way that doesn't correspond to 8-bit alignments. See [1] and [2]. Kaitai Struct does support
by dhx 5y ago
Kuinox could be referring to bit field types that are packed in a way that doesn't correspond to 8-bit alignments. See [1] and [2].
Kaitai Struct does support bit fields but they have to be aligned on 8 bit boundaries[3]. I can't think of any instance of a binary format anyone would still be using that would fail this condition to align on 8 bit boundaries.
[1] http://www.catb.org/esr/structure-packing/#_bitfields http://www.catb.org/esr/structure-packing/#_bitfields
[2] https://retrocomputing.stackexchange.com/questions/15512/did-any-computer-use-a-7-bit-byte https://retrocomputing.stackexchange.com/questions/15512/did...
[3] https://doc.kaitai.io/user_guide.html#_bit_sized_integers https://doc.kaitai.io/user_guide.html#_bit_sized_integers