diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2021-11-19 15:45:31 +0100 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2021-11-19 15:45:31 +0100 |
commit | 7f754c49a843d9b63885a1fa7e06f4d2cf6ccc5f (patch) | |
tree | e8678169eeca4a0788d671ec744effb0e6647956 /nihav-core/src | |
parent | 6a97ae3af1e98b2d7b064c8870aaccae44a47c7d (diff) | |
download | nihav-7f754c49a843d9b63885a1fa7e06f4d2cf6ccc5f.tar.gz |
add bytes_left() to NAPacketiser so its internal buffer size can be monitored
Diffstat (limited to 'nihav-core/src')
-rw-r--r-- | nihav-core/src/codecs/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nihav-core/src/codecs/mod.rs b/nihav-core/src/codecs/mod.rs index 1072fc4..b6a1820 100644 --- a/nihav-core/src/codecs/mod.rs +++ b/nihav-core/src/codecs/mod.rs @@ -374,6 +374,8 @@ pub trait NAPacketiser { fn get_packet(&mut self, stream: NAStreamRef) -> DecoderResult<Option<NAPacket>>; /// Resets the internal buffer. fn reset(&mut self); + /// Tells how much data is left in the internal buffer. + fn bytes_left(&self) -> usize; } /// Decoder information used during creating a packetiser for requested codec. |