def u32_bytes

mylsm-lsm-store@0.6.0.1 · src/Wal.bend:55

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

55# Encode or decode a 32-bit word for bytes for the packed WAL codec.
56def u32_bytes(value: U32) -> Bytes.Bytes:
57  Bytes.set.u32be(Bytes.new(4), 0, value)

Uses (4)

Used by (3)