def file.block
import mylsm-lsm-store@0.6.0.1/src/ByteSstFile.bend as ByteSstFileimport Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
287# Creates fixed block header copies and payload copies for hashing.
288def file.block(
289 frame: Bytes.Bytes,
290 +level: U32,
291 +total: U32,
292 +payload_len: U32
293) -> Result<&1, &1, Error, Bytes.Bytes>:
294 file.block.copies(clone.split(Bytes.concat([u32.bytes(payload_len),
295 u32.bytes(total)])), clone.split(frame), level, total, payload_len)