symphonia_core::io

Trait 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§