def rr.cl

bend-kit-dns@0.7.0.0 · dns.bend:207

import bend-kit-dns@0.7.0.0/dns.bend as Dns
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

207def rr.cl(+ty: U32, r: Bytes.Cursor & Maybe<&2, U32>) -> Bytes.Cursor & RR:
208  (c, m) = r
209  match m:
210    case None{}:
211      (c, RRBad{})
212    case Some{cl}:
213      rr.ttl(ty, cl, Bytes.Cursor.skip(c, 4))

Uses (8)

Used by (1)