def bytes.read.raw

gralha-bytes@0.1.0.1 · bytes.bend:423

import gralha-bytes@0.1.0.1/bytes.bend as Bytes
import Base

423# A file's bytes, read straight into a byte tree by the effect (File.read
424# decodes UTF-8, and building the tree in Bend from a byte string costs a
425# cons cell per byte); Fail carries the errno and its message.
426def bytes.read.raw(path: String) -> IO(Result<&1, &1, U32 & String, Bytes>):
427  import "./effs/bytes_read.c"
428  import "./effs/bytes_read.js"

Uses (6)

Used by (1)