Function binread::until_eof [−][src]
pub fn until_eof<R, T, Arg, Ret>(
reader: &mut R,
ro: &ReadOptions,
args: Arg
) -> BinResult<Ret> where
T: BinRead<Args = Arg>,
R: 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>,
}