def read_words

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

import mylsm-lsm-store@0.6.0.1/src/Fs.bend as Fs
import Base
import mylsm-lsm-store@0.6.0.1/src/FilesCompat.bend as PackedFiles

11# Read at most 1 MiB as packed words. Short reads are valid progress; zero is EOF.
12def read_words(
13  file: File,
14  max: U32
15) ->
16  IO(File & Result<&1, &1, U32 & String, U32 & Array<U32>>):
17  PackedFiles.read.words(file, max)

Uses (8)

Used by (1)