Skip to content

Commit

Permalink
Add 'inner' and 'inner_mut' variant for 'amf0::decode::Decoder'
Browse files Browse the repository at this point in the history
  • Loading branch information
taufik-rama committed Feb 3, 2022
1 parent 4b98267 commit dcedbf5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/amf0/decode.rs
Expand Up @@ -18,6 +18,16 @@ impl<R> Decoder<R> {
pub fn into_inner(self) -> R {
self.inner
}

/// Get the reference to the underlying reader.
pub fn inner(&self) -> &R {
&self.inner
}

/// Get the mutable reference to the underlying reader.
pub fn inner_mut(&mut self) -> &mut R {
&mut self.inner
}
}
impl<R> Decoder<R>
where
Expand Down

0 comments on commit dcedbf5

Please sign in to comment.