def decode_header
import mylsm-lsm-store@0.6.0.1/src/ByteWal.bend as ByteWalimport 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))