def read.exact.complete
import mylsm-lsm-store@0.6.0.1/src/SstStreamIo.bend as SstStreamIoimport Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
112def read.exact.complete(bytes: Bytes.Bytes, complete: Bool) -> Result<&1, &1, U32 & String, Bytes.Bytes>:
113 match complete:
114 case True{}:
115 Done{bytes}
116 case False{}:
117 Fail{(corruption_error_code(), "truncated SST")}