def u32.read

bend-kit-bytes@0.3.3.0 · bytes.bend:778

import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
import Base

778# ASCII decimal digits to a U32. None when b is empty, holds a non-digit, or exceeds 4294967295.
779def u32.read(b: Bytes) -> Maybe<&2, U32>:
780  Bytes{+len, buf} = b
781  u32.read.go(U32.to_nat(len), peek(buf, 0), 0, 0, U32.is_ne(len, 0))

Uses (7)

Used by (0)

No other definition uses this definition.