def rr.a

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

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

167def rr.a(limit: Bytes.CursorLimit, r: Bytes.Cursor & Maybe<&2, U32>) -> Bytes.Cursor & RR:
168  (c, m) = r
169  match m:
170    case None{}:
171      (Bytes.Cursor.leave(c, limit), RRBad{})
172    case Some{ip}:
173      (Bytes.Cursor.leave(c, limit), RRA{dotted(ip)})

Uses (9)

Used by (1)