def file.header

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

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

220# Creates the one-block header and gives its copy to the root calculation.
221def file.header(
222  block: Bytes.Bytes,
223  block_root: Bytes.Bytes,
224  +level: U32,
225  +total: U32,
226  +payload_len: U32
227) -> Result<&1, &1, Error, Bytes.Bytes>:
228  file.header.copies(clone.split(Bytes.concat([header.magic(),
229    u32.bytes(level), u32.bytes(total), u32.bytes(1)])), block,
230    block_root, total, payload_len)

Uses (10)

Used by (1)