def read_words
import mylsm-lsm-store@0.6.0.1/src/Fs.bend as Fsimport 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)