def label.put
import bend-kit-dns@0.7.0.0/dns.bend as Dnsimport 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)))