Envelope.decode.start: def of bendonnect-rpc@0.1.0.0 Import: import bendonnect-rpc@0.1.0.0/src/envelope.bend as Envelope Lines 101-105 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=101&end_line=105 import Base import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes # Reads one envelope off the front of buf: Need when more bytes are required, Got with # the remaining bytes, Bad when the announced size exceeds max. def decode.start(r: Bytes.Bytes & U32, +max: U32) -> Step: (b, +n) = r decode.hdr(U32.is_lt(n, 5), b, n, max) Uses (7): 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_lt 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.hdr