def read_at
import mylsm-lsm-store@0.6.0.1/src/Fs.bend as Fsimport 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)
- mylsm-lsm-store@0.6.0.1/src/ByteManifestIo:read.sized
- mylsm-lsm-store@0.6.0.1/src/coordinator/OwnerGenerationIo:read.size
- mylsm-lsm-store@0.6.0.1/src/scan/ByteBlockReader:index.page.footer.read
- mylsm-lsm-store@0.6.0.1/src/scan/ByteBlockReader:index.page.loop
- mylsm-lsm-store@0.6.0.1/src/scan/ByteBlockReader:measure.key.block
- …