def block.header

mylsm-lsm-store@0.6.0.1 · src/transfer/Backup.bend:196

import mylsm-lsm-store@0.6.0.1/src/transfer/Backup.bend as Backup
import Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes

196def block.header(
197  +index: U32,
198  +count: U32,
199  pair: Bytes.Bytes & U32
200) -> Bytes.Bytes:
201  match pair:
202    case (frame, +length):
203      Bytes.concat([block.magic(), u32.bytes(index), u32.bytes(count),
204        u32.bytes(length), frame])

Uses (8)

Used by (1)