def read_utf8_chunk

mylsm-lsm-store@0.3.2.0 · src/Fs.bend:43

import mylsm-lsm-store@0.3.2.0/src/Fs.bend as Fs
import Base

43# Returns `<byte-count>;<text>` for a positional chunk whose end is adjusted to
44# a complete UTF-8 boundary. The byte count advances the next positional read.
45def read_utf8_chunk(path: String, offset: Nat, max_bytes: Nat) -> IO(Result<&1, &1, U32 & String, String>):
46  import "./effs/read_utf8_chunk.c"
47  import "./effs/read_utf8_chunk.js"

Uses (6)

Used by (1)