def encode.page.block.digest
mylsm-lsm-store@0.6.0.1 · src/ByteSstFile.bend:558
import mylsm-lsm-store@0.6.0.1/src/ByteSstFile.bend as ByteSstFile
import Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
558def encode.page.block.digest(
559 measured: Bytes.Bytes & U32,
560 count: U32,
561 separator: Bytes.Bytes,
562 separator_length: U32
563) -> Result<&1, &1, Error, EncodedBlock>:
564 match measured:
565 case (bytes, +byte_length):
566 encode.page.block.output(Bytes.slice(bytes, (byte_length - 32 : U32), 32),
567 byte_length, count, separator, separator_length)