def question.end

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

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

250# QTYPE and QCLASS follow the name.
251def question.end(r: Bytes.Cursor & Bool) -> Bytes.Cursor & Bool:
252  (c, ok) = r
253  match ok:
254    case False{}:
255      (c, False{})
256    case True{}:
257      Bytes.Cursor.skip(c, 4)

Uses (5)

Used by (1)