type WriteState

mylsm-lsm-store@0.6.0.1 · src/SstStreamIo.bend:490

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

490# Linear writer state keeps the file handle paired with the encoder result.
491type WriteState is Type:
492  WriteNext{file: File, encoder: SstFile.Encoder}
493  WriteOutput{file: File,
494    pair: SstFile.Encoder & Maybe<&1, Bytes.Bytes>}
495  WriteResult{pair: File & Result<&1, &1, U32 & String, Unit>,
496    encoder: SstFile.Encoder}

Uses (9)

Used by (2)