kellerkindt / asn1rs

Generates Rust Code and optionally compatible Protobuf schema files from ASN.1 definitions.
http://asn1.rs
Apache License 2.0
55 stars 20 forks source link

Add into_bits convenience method for UperReader #82

Closed jkalez closed 1 year ago

jkalez commented 1 year ago

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.

kellerkindt commented 1 year ago

Thanks!