def w.of

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

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

101# A writer that appends to b.
102def w.of(b: Bytes.Bytes) -> W:
103  Bytes.Bytes{+len, buf} = b
104  w.of.at(len, U32.shln(1, Bytes.depth(Bytes.words(len))), Array.get(U32, buf, (len >> 2n : U32)))

Uses (9)

Used by (1)