Skip to content

Commit

Permalink
Add reader.into_inner
Browse files Browse the repository at this point in the history
  • Loading branch information
wcampbell0x2a committed Apr 4, 2024
1 parent dd6bd04 commit 2a4ef8f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ impl<'a, R: Read> Reader<'a, R> {
}
}

/// Consume self, returning inner Reader
#[inline]
pub fn into_inner(self) -> &'a mut R {
self.inner
}

/// Return the unused bits
///
/// Once the parsing is complete for a struct, if the total size of the field using the `bits` attribute
Expand Down

0 comments on commit 2a4ef8f

Please sign in to comment.