def write_all

mylsm-lsm-store@0.6.0.1 · src/coordinator/Io.bend:403

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

403# Completes a frame by advancing over bounded partial writes.
404def write_all(
405  file: File,
406  bytes: Bytes.Bytes
407) -> IO(
408  File & Result<&1, &1, U32 & String, Unit>
409):
410  match bytes:
411    case Bytes.Bytes{length, words}:
412      write.start(file, length, words)

Uses (9)

Used by (1)