def w.of
import bend-kit-json@0.7.0.0/json.bend as Jsonimport 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)))