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 into_bits convenience method for UperReader #82

Merged
merged 1 commit into from
Aug 16, 2023

Conversation

jkalez
Copy link
Contributor

@jkalez jkalez commented Aug 16, 2023

UperReaders can be created from any type implementing ScopedBitRead. However, UperReader::from obviously consumes this type. Users of UperReader may want to get the original ScopedBitReader back out after they are done with the UperReader. This patch provides an into_bits function which returns the underlying ScopedBitRead type, consuming the UperReader.

`UperReader`s can be created from any type implementing `ScopedBitRead`.
However, `UperReader::from` obviously consumes this type.  Users of
`UperReader` may want to get the original `ScopedBitReader` back out
after they are done with the `UperReader`.  This patch provides an
`into_bits` function which returns the underlying `ScopedBitRead` type,
consuming the `UperReader`.
@kellerkindt kellerkindt merged commit e8b7c3c into kellerkindt:master Aug 16, 2023
12 checks passed
@kellerkindt
Copy link
Owner

Thanks!

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