def rr.ty
import bend-kit-dns@0.7.0.0/dns.bend as Dnsimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
215def rr.ty(r: Bytes.Cursor & Maybe<&2, U32>) -> Bytes.Cursor & RR:
216 (c, m) = r
217 match m:
218 case None{}:
219 (c, RRBad{})
220 case Some{ty}:
221 rr.cl(ty, Bytes.Cursor.u16be(c))