def read_at

mylsm-lsm-store@0.6.0.1 · src/Fs.bend:351

import mylsm-lsm-store@0.6.0.1/src/Fs.bend as Fs
import Base
import bend-kit-bytes@0.3.2.0/bytes.bend as StorageBytes

351# Reads bounded bytes at a file offset without changing its current position.
352def read_at(
353  file: File,
354  +offset: U32,
355  +max: U32
356) -> IO(File & Result<&1, &1, U32 & String, StorageBytes.Bytes>):
357  read_at.start(file, read_at.nat.clone(U32.to_nat(offset)),
358    read_at.nat.clone.triple(U32.to_nat(max)))

Uses (11)

Used by (16)