def write_bytes

mylsm-lsm-store@0.6.0.1 · src/Fs.bend:360

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

360# Write the significant bytes of a packed buffer through the pinned host effect.
361def write_bytes(
362  file: File,
363  bytes: StorageBytes.Bytes
364) ->
365  IO(File & Result<&1, &1, U32 & String, Unit>):
366  StorageBytes.Bytes{len, buf} = bytes
367  write_words(file, len, buf)

Uses (9)

Used by (12)