def append.opened.frame

mylsm-lsm-store@0.6.0.1 · src/ByteWalIo.bend:612

import mylsm-lsm-store@0.6.0.1/src/ByteWalIo.bend as ByteWalIo
import Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes

612# Routes an opened WAL frame according to its encoded byte length.
613def append.opened.frame(
614  file: File,
615  frame: Bytes.Bytes,
616  +path: String
617) -> IO(Result<&1, &1, U32 & String, Unit>):
618  match frame:
619    case Bytes.Bytes{+total, _}:
620      append.opened.checked(file, frame, total, path,
621        U32.is_le(65537, total))

Uses (10)

Used by (1)