def decode_header

mylsm-lsm-store@0.6.0.1 · src/ByteWal.bend:159

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

159# Accepts only the generation-four byte WAL signature.
160def decode_header(bytes: Bytes.Bytes) -> Result<&1, &1, Wal.Error, Unit>:
161  decode_header.comparison(Bytes.eq(header(), bytes))

Uses (7)

Used by (1)