def file.index
mylsm-lsm-store@0.6.0.1 · src/ByteSstFile.bend:195
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
195
196def file.index(
197 header_output: Bytes.Bytes,
198 header_hash: Bytes.Bytes,
199 block: Bytes.Bytes,
200 block_root: Bytes.Bytes,
201 +total: U32,
202 +payload_len: U32
203) -> Result<&1, &1, Error, Bytes.Bytes>:
204 file.index.copies(header_output, header_hash, block, block_root,
205 clone.split(Bytes.concat([index.magic(), u32.bytes(1),
206 u32.bytes(20), u32.bytes((40 + payload_len : U32))])), total)