Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new bitOrder byteOrder combimation #10

Open
mbeckerle opened this issue Nov 23, 2020 · 1 comment
Open

new bitOrder byteOrder combimation #10

mbeckerle opened this issue Nov 23, 2020 · 1 comment
Labels
DFDL 2.0 For issues associated with DFDL v2.0 (next major revision)

Comments

@mbeckerle
Copy link
Collaborator

Previously disallowed combination to be allowed.

@mbeckerle mbeckerle added the DFDL 2.0 For issues associated with DFDL v2.0 (next major revision) label Nov 23, 2020
@mbeckerle
Copy link
Collaborator Author

Here is a well-documented use case for this.

The Asterix CAT 034 message uses byteOrder bigEndian but bit order leastSignificantBitFirst for numbers that span bytes. For example they describe an 11-bit integer in this way:

image

In this picture you can see they are numbering the bits from the right, leastSignificantBitFirst starting from 1. But the COUNTER field spans all of Octet 3, but also includes the least significant 3 bits of Octet 2. In those least significant 3 bits are the most significant (numerically) 3 bits of the 11 bit COUNTER integer, so this is bigEndian byte order, but leastSignificantBitFirst bit order.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DFDL 2.0 For issues associated with DFDL v2.0 (next major revision)
Projects
None yet
Development

No branches or pull requests

1 participant