def head.id.if

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

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

315def head.id.if(ok: Bool, c: Bytes.Cursor) -> Maybe<&2, String>:
316  match ok:
317    case False{}:
318      None{}
319    case True{}:
320      head.flags(Bytes.Cursor.u16be(c))

Uses (6)

Used by (1)