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

Support 'twisted' RDW headers #430

Closed
yruslan opened this issue Oct 26, 2021 · 0 comments
Closed

Support 'twisted' RDW headers #430

yruslan opened this issue Oct 26, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@yruslan
Copy link
Collaborator

yruslan commented Oct 26, 2021

Background

When, say, a record length is 10, RDWs will look like this:
Big-endian: 00 0A 00 00
Little-endian: 00 00 0A 00

But sometimes we encounter:
Big-endian: 00 00 00 0A
Little-endian: 0A 00 00 00

Feature

Add support for these 'twisted' headers by

  • Checking if the first 2 bytes of an RDW header is 0, use the second 2 bytes.
  • Apply endiness logic to the 2 non-zero bytes.
@yruslan yruslan added the enhancement New feature or request label Oct 26, 2021
@yruslan yruslan self-assigned this Oct 26, 2021
yruslan added a commit that referenced this issue Oct 26, 2021
yruslan added a commit that referenced this issue Oct 26, 2021
@yruslan yruslan closed this as completed Oct 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant