Trait symphonia_core::io::FiniteStream
source · pub trait FiniteStream {
// Required methods
fn byte_len(&self) -> u64;
fn bytes_read(&self) -> u64;
fn bytes_available(&self) -> u64;
}
Expand description
A FiniteStream
is a stream that has a known length in bytes.
Required Methods§
sourcefn bytes_read(&self) -> u64
fn bytes_read(&self) -> u64
Returns the number of bytes that have been read.
sourcefn bytes_available(&self) -> u64
fn bytes_available(&self) -> u64
Returns the number of bytes available for reading.