def head.flags.if

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

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

300def head.flags.if(ok: Bool, c: Bytes.Cursor) -> Maybe<&2, String>:
301  match ok:
302    case False{}:
303      None{}
304    case True{}:
305      body.qd(Bytes.Cursor.u16be(c))

Uses (6)

Used by (1)