def take.of
import bend-kit-http2@0.4.0.0/hpack.bend as Hpackimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
147def take.of(r: Bytes.Bytes & Maybe<&2, U32>, +at: U32, +length: U32) -> Maybe<&1, Cursor & U32>:
148 (b, m) = r
149 match m:
150 case None{}:
151 None{}
152 case Some{value}:
153 Some{(Cursor{b, (at + 1 : U32), length}, value)}