def w.str

bend-kit-json@0.7.0.0 · json.bend:1035

import bend-kit-json@0.7.0.0/json.bend as Json
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

1035# A quoted, escaped string.
1036def w.str(b: Bytes.Bytes, o: W) -> W:
1037  Bytes.Bytes{+len, buf} = b
1038  w.str.go(U32.to_nat(len), Bytes.peek(buf, 0), 0, w.put(o, 34))

Uses (6)

Used by (1)