def rr.data.some

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

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

175def rr.data.some(a: Bool, c: Bytes.Cursor, limit: Bytes.CursorLimit) -> Bytes.Cursor & RR:
176  match a:
177    case True{}:
178      rr.a(limit, Bytes.Cursor.u32be(c))
179    case False{}:
180      (Bytes.Cursor.leave(c, limit), RRSkip{})

Uses (9)

Used by (1)