def decode.hdr

bendonnect-rpc@0.1.0.0 · src/envelope.bend:94

import bendonnect-rpc@0.1.0.0/src/envelope.bend as Envelope
import Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes

94def decode.hdr(short: Bool, buf: Bytes.Bytes, +n: U32, +max: U32) -> Step:
95  match short:
96    case True{}:
97      Need{buf}
98    case False{}:
99      decode.flags(Bytes.get(buf, 0), n, max)

Uses (6)

Used by (1)