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

Method writeChars

modules/crypt/ssl/ssl_stream.js:67–72  ·  view source on GitHub ↗
(v, n)

Source from the content-addressed store, hash-verified

65 this.#bytes[this.#write++] = c;
66 }
67 writeChars(v, n) {
68 if (this.#write + n > this.#bytes.length)
69 this.morebuf(n);
70 while (--n >= 0)
71 this.#bytes[this.#write++] = v >>> (n * 8);
72 }
73 writeChunk(a) {
74 const n = a.byteLength;
75 if (n <= 0)

Callers 5

calculateMacFunction · 0.95
aeadAdditionalDataFunction · 0.95
packetizeFunction · 0.95
packetizeFunction · 0.95
unpacketizeFunction · 0.95

Calls 1

morebufMethod · 0.95

Tested by

no test coverage detected