def rr.ttl
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
199def rr.ttl(+ty: U32, +cl: U32, r: Bytes.Cursor & Bool) -> Bytes.Cursor & RR:
200 (c, ok) = r
201 match ok:
202 case False{}:
203 (c, RRBad{})
204 case True{}:
205 rr.len(ty, cl, Bytes.Cursor.u16be(c))