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§

source

fn byte_len(&self) -> u64

Returns the length of the the stream in bytes.

source

fn bytes_read(&self) -> u64

Returns the number of bytes that have been read.

source

fn bytes_available(&self) -> u64

Returns the number of bytes available for reading.

Implementations on Foreign Types§

source§

impl<'b, F: FiniteStream> FiniteStream for &'b mut F

Implementors§