raw.bend relies on unsafe/foreign
raw source on the hub · import bend-raw-cells@0.1.0.0/raw.bend as Raw
bend-raw-cells: raw little-endian 32-bit cells between files and Bend arrays (Array<U32>), in place, as foreign effects. Native builds only (C); the JS stubs throw. Nothing here is proved.
import bend-raw-cells@<version>/raw.bend as R
1 import
import Base
Effects (foreign code)
effect Raw.read source · line 10 · raw
@path:String -> @a:Array<U32> -> @cells:U32 -> IO(Array<U32>)
foreign: effs/raw_read.c, effs/raw_read.js
effect Raw.write source · line 14 · raw
@path:String -> @a:Array<U32> -> @cells:U32 -> IO(Array<U32>)
foreign: effs/raw_write.c, effs/raw_write.js
effect Raw.read_at source · line 19 · raw
@path:String -> @off_hi:U32 -> @off_lo:U32 -> @a:Array<U32> -> @dst:U32 -> @cells:U32 -> IO(Array<U32>)
Raw.read_at: cells cells from byte offset off_hi * 2^32 + off_lo of the file into the array from cell dst on.
foreign: effs/raw_read_at.c, effs/raw_read_at.js