def header_bytes

mylsm-lsm-store@0.6.0.1 · src/SstFile.bend:466

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

466# Encode fixed-width v3 header fields in network byte order.
467def header_bytes(
468  +level: U32,
469  +total: U32,
470  +block_count: U32
471) -> Bytes.Bytes:
472  Bytes.concat([hex_bytes.fin(Bytes.from_hex("4d594c534d335300")),
473    u32_bytes(level), u32_bytes(total), u32_bytes(block_count)])

Uses (7)

Used by (3)