Struct flac::ByteStream
[−]
[src]
pub struct ByteStream<'a> {
// some fields omitted
}Structure that hold a slice of bytes.
Methods
impl<'a> ByteStream<'a>
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.