def decode_frame
import mylsm-lsm-store@0.6.0.1/src/Wal.bend as Walimport Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
542# Decode frame for the packed WAL codec.
543def decode_frame(
544 bytes: Bytes.Bytes
545) -> Result<&1, &1, Error, Batch>:
546 frame.bound.length(Bytes.Cursor.u32be(Bytes.Cursor.new(bytes)))