We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bc75a66 + 8af5ddf commit 56a8c7dCopy full SHA for 56a8c7d
1 file changed
README.md
@@ -348,6 +348,14 @@ const parser = new Parser()
348
.int32("c");
349
```
350
351
+This setting also affects the bit extraction order of
352
+[bit field](#bit1-32name-options) methods (`bit1` to `bit32`). In big-endian
353
+mode, bit fields are extracted from MSB to LSB.
354
+In little-endian mode, bit fields are extracted from LSB to MSB.
355
+If you need big-endian bit ordering while using little-endian
356
+byte ordering, you can parse bit fields in a separate `Parser` with
357
+`.endianness("big")` and embed it using `.nest()`.
358
+
359
### namely(alias)
360
Set an alias to this parser, so that it can be referred to by name in methods
361
like `.array`, `.nest` and `.choice`, without the requirement to have an
0 commit comments