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

Method getChunk

modules/crypt/etc/ber.js:150–154  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

148 return result;
149 }
150 getChunk(n) {
151 const result = new Uint8Array(this.#a.buffer, this.#a.byteOffset + this.#i, n);
152 this.skip(n);
153 return result;
154 }
155 getBuffer() {
156 return this.#a.slice(0, this.#i).buffer;
157 }

Callers 5

getIntegerMethod · 0.95
getOctetStringMethod · 0.95
decodeAKIFunction · 0.95
decodeTagMethod · 0.45
decodeSANFunction · 0.45

Calls 1

skipMethod · 0.95

Tested by

no test coverage detected