MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / putChunk

Method putChunk

modules/crypt/etc/ber.js:187–192  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

185 }
186 }
187 putChunk(c) {
188 if (this.#i + c.byteLength > this.#a.length)
189 this.morebuf(c.byteLength);
190 this.#a.set(new Uint8Array(c), this.#i);
191 this.#i += c.byteLength;
192 }
193 get i() {
194 return this.#i;
195 }

Callers 1

encodeMethod · 0.95

Calls 2

morebufMethod · 0.95
setMethod · 0.65

Tested by

no test coverage detected