-
Notifications
You must be signed in to change notification settings - Fork 944
Update SPEC.md #356
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
Update SPEC.md #356
Conversation
geky
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @zqb-all, good catch and thanks for the PR! Some comments below.
SPEC.md
Outdated
| tag data | ||
| [-- 32 --][-- 32 --|--- variable length ---] | ||
| [1| 3| 8 | 10 | 10 ][-- 32 --|--- (size) ---] | ||
| [1| 3| 8 | 10 | 10 ][-- 32 --|--- (size - 4) ---] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this actually be (size - 32) since the other fields are in bits?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, this field should in bits, but size is in bytes, maybe (size * 8 - 32) is better ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah! Good point, you're right that is better.
| [1| 3| 8 | 10 | 10 ][-- 32 --|--- (size) ---] | ||
| [1| 3| 8 | 10 | 10 ][-- 32 --|--- (size - 4) ---] | ||
| ^ ^ ^ ^ ^ ^- crc ^- padding | ||
| | | | | '- size (12) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this 12 mean here? The size could be any value.
e10636c to
7fec59a
Compare
|
Hi @zqb-all, sorry about the absence. Does the updated comment make sense to you? If you're not able to update the PR I can bring it in and make the suggested changes on the next release. |
1.fix size in Layout of the CRC tag 2.update (size) to (size * 8)
|
Hi @geky, thanks for you reply, I am glad to update the PR. |
|
Thanks for the contribution! |
fix size in Layout of the CRC tag