Skip to main content

read_from_offset

Function read_from_offset 

Source
pub fn read_from_offset(data: &[u8], offset: u64) -> Vec<u8> ⓘ
Expand description

Slice data at offset, returning at most the available remainder (9P read semantics: reading past EOF yields an empty result, not an error). count is accepted for symmetry with [Mount::read] callers but both primitives here return their full latched/rendered buffer from offset onward — callers needing chunked reads should slice further.