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

add information about the current bitstream in flen ('bs' and 'offset_b') #1051

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Ninjananas
Copy link
Contributor

No description provided.

@serpilliere serpilliere added the WIP label Jul 5, 2019
@@ -1085,7 +1087,10 @@ def guess_mnemo(cls, bs, attrib, pre_dis_info, offset):
(l, fmask, fbits, fname, flen), vals = branch

if flen is not None:
l = flen(attrib, fname_values)
try:
l = flen(attrib, fname_values, bs, offset_b)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this new code, flen can raise IOError as the user can get bits from the bs.
You must have the same behavior as getbits below in case of IOError.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed it in the latest commit.

@serpilliere serpilliere removed the WIP label Jul 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants