def encode.page.frame.result

mylsm-lsm-store@0.6.0.1 · src/ByteSstFile.bend:525

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

525def encode.page.frame.result(
526  frame: Result<&1, &1, Wal.Error, Bytes.Bytes>,
527  count: U32
528) -> Result<&1, &1, Error, Bytes.Bytes>:
529  match frame:
530    case Fail{_}: Fail{TooLarge{}}
531    case Done{bytes}:
532      encode.page.frame.block(count, Bytes.length(bytes))

Uses (7)

Used by (1)