Envelope.decode.len: def of bendonnect-rpc@0.1.0.0 Import: import bendonnect-rpc@0.1.0.0/src/envelope.bend as Envelope Lines 78-84 of bendonnect-rpc@0.1.0.0/src/envelope.bend: https://jend.leeeet.dev/read.txt?path=bendonnect-rpc@0.1.0.0/src/envelope.bend&start_line=78&end_line=84 import Base import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes def decode.len(r: Bytes.Bytes & Maybe<&2, U32>, +flags: U32, +n: U32, +max: U32) -> Step: (buf, m) = r match m: case None{}: Bad{"truncated envelope header"} case Some{+len}: decode.size(U32.is_gt(len, max), buf, flags, len, n, max) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_gt https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=Bytes https://jend.leeeet.dev/definition.txt?path=bendonnect-rpc@0.1.0.0/src/envelope.bend&name=Step https://jend.leeeet.dev/definition.txt?path=bendonnect-rpc@0.1.0.0/src/envelope.bend&name=decode.size