Function binread::helpers::read_bytes[][src]

pub fn read_bytes<R: Read + Seek>(
    reader: &mut R,
    options: &ReadOptions,
    _: ()
) -> BinResult<Vec<u8>>
Expand description

A helper for more efficiently mass-reading bytes

Example:

#[derive(BinRead)]
struct BunchaBytes {
    #[br(count = 5)]
    data: Vec<u8>
}