3 ms·
I have had to work with data that uses little-endian for bit order as well (although we call it "least significant nit first", and reserve the word "endian" to
by gizmo686 5y ago
I have had to work with data that uses little-endian for bit order as well (although we call it "least significant nit first", and reserve the word "endian" to describe byte order).
We actually dealt with this by adding support to a general purpose open source parsing tool we maintain [0]; where we had to add a feature to the standard specifically to accommodate this [1].
Even though least-significant-bit-first makes sense with littleEndian actually working with it is a giant pain, because approximately no tooling actually thinks that way.
[0] https://daffodil.apache.org/ https://daffodil.apache.org/
[1] https://daffodil.apache.org/docs/dfdl/#_Toc62570139 https://daffodil.apache.org/docs/dfdl/#_Toc62570139