Struct flac::ByteStream [] [src]

pub struct ByteStream<'a> {
    // some fields omitted
}

Structure that hold a slice of bytes.

Methods

impl<'a> ByteStream<'a>
[src]

fn new(bytes: &'a [u8]) -> Self

Construct a ByteStream based on the passed in byte slice.

fn len(&self) -> usize

Return the number of bytes that haven't been consumed yet.

fn is_empty(&self) -> bool

Return true if the stream contains no more bytes.

Trait Implementations

impl<'a> StreamProducer for ByteStream<'a>
[src]

fn parse<F, T>(&mut self, f: F) -> Result<T, ErrorKind> where F: FnOnce(&[u8]) -> IResult<&[u8], T>