Trait xcursor::parser::StreamExt

source ·
trait StreamExt {
    // Required methods
    fn tag(&mut self, tag: [u8; 4]) -> IoResult<()>;
    fn take_bytes(&mut self, len: usize) -> IoResult<Vec<u8>>;
    fn u32_le(&mut self) -> IoResult<u32>;
}

Required Methods§

source

fn tag(&mut self, tag: [u8; 4]) -> IoResult<()>

Parse a series of bytes, returning None if it doesn’t exist.

source

fn take_bytes(&mut self, len: usize) -> IoResult<Vec<u8>>

Take a slice of bytes.

source

fn u32_le(&mut self) -> IoResult<u32>

Parse a 32-bit little endian number.

Implementors§

source§

impl<R: Read> StreamExt for R