def body.an
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
279# The header ends with NSCOUNT and ARCOUNT; questions follow.
280def body.an(+qd: U32, r: Bytes.Cursor & Maybe<&2, U32>) -> Maybe<&2, String>:
281 (c, m) = r
282 match m:
283 case None{}:
284 None{}
285 case Some{an}:
286 body.go(an, questions(U32.to_nat(qd), Bytes.Cursor.skip(c, 4)))