def label.put

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

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

44def label.put(s: String, c: Bytes.Cursor) -> Bytes.Cursor:
45  match s:
46    case SNil{}:
47      c
48    case SCon{Chr{v}, t}:
49      label.put(t, written(Bytes.Cursor.put.u8(c, v)))

Uses (5)

Used by (1)