Skip to main content

read

Function read 

Source
pub fn read(
    file: &Bytes,
    start: i128,
    tree: &Arc<Tree>,
    ctx: &ReadCtx<'_>,
) -> Result<Parsed, ReadError>
Expand description

Reads one value from file by the memory reader’s rules (bytes), starting at start (any Python position). bytes_read counts from start and may be negative. Its work is the open’s, counted on ctx.meter whatever the outcome (the module docs of super, “Work”).