Trait FiniteStream
pub trait FiniteStream {
// Required methods
fn byte_len(&self) -> u64 ⓘ;
fn bytes_read(&self) -> u64 ⓘ;
fn bytes_available(&self) -> u64 ⓘ;
}
Available on crate feature
dep_symphonia
only.Expand description
A FiniteStream
is a stream that has a known length in bytes.
Required Methods§
fn bytes_read(&self) -> u64 ⓘ
fn bytes_read(&self) -> u64 ⓘ
Returns the number of bytes that have been read.
fn bytes_available(&self) -> u64 ⓘ
fn bytes_available(&self) -> u64 ⓘ
Returns the number of bytes available for reading.