Function binrw::until_eof [−][src]
pub fn until_eof<Reader, T, Arg, Ret>(
reader: &mut Reader,
ro: &ReadOptions,
args: Arg
) -> BinResult<Ret> where
T: BinRead<Args = Arg>,
Reader: Read + Seek,
Arg: Clone,
Ret: FromIterator<T>,
Expand description
Read items until the end of the file is hit.
Examples
#[derive(BinRead)]
struct EntireFile {
#[br(parse_with = until_eof)]
data: Vec<u8>,
}