def decode
import mylsm-lsm-store@0.6.0.1/src/coordinator/OwnerGenerationIo.bend as OwnerGenerationIoimport Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
54# Accepts only one nonzero, fixed-width owner generation.
55def decode(bytes: Bytes.Bytes, size: Nat) -> Result<&1, &1, Error, U32>:
56 match size:
57 case 4n: decode.word(bytes)
58 case _: Fail{Invalid{}}