def read_f32_at
import bend-ml-binary-read@0.2.0.0/main.bend as BendMlBinaryReadimport Base
36# As read_f32, at the byte offset hi * 2^32 + lo, and it answers the number of whole numbers read (not bytes), so a
37# read of up to 2^32 - 1 numbers (16 GiB) answers its count in a U32. Reads n numbers into cells 0 .. n-1 of `a`,
38# stopping at a's capacity and at the end of the file; the file's position does not move. A short read leaves the
39# cells past it as they were, except that a last partial number writes only its bytes, as in read_f32.
40def read_f32_at(file: File, hi: U32, lo: U32, n: U32, a: Array<F32>) ->
41 IO(File & (Array<F32> & Result<&1, &1, U32 & String, U32>)):
42 import "./read_at.c"
43 import "./read_at.js"