Skip to content

Comments

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

Open
Ninjananas wants to merge 5 commits intocea-sec:masterfrom
Ninjananas:flen_with_bs
Open

add information about the current bitstream in flen ('bs' and 'offset_b')#1051
Ninjananas wants to merge 5 commits intocea-sec:masterfrom
Ninjananas:flen_with_bs

Conversation

@Ninjananas
Copy link
Contributor

No description provided.

@serpilliere serpilliere added the WIP label Jul 5, 2019
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.

2 participants