Function simple_parse::readall_at_offset[][src]

pub fn readall_at_offset<T, V, R: ?Sized>(
    offset: &V,
    total: &V,
    src: &mut R,
    ctx: &mut SpCtx
) -> Result<T, SpError> where
    V: Copy + Into<u64>,
    T: SpRead + SpOptHints,
    R: Read

Consumes bytes until the specified offset is reached then calls T::from_reader with count set to Some(total_sz - offset)