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

Method getSequence

modules/crypt/etc/ber.js:142–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

140 return oid;
141 }
142 getSequence() {
143 if (this.getTag() != 0x30)
144 throw new Error("BER: not a sequence");
145 const length = this.getLength();
146 const result = this.#a.subarray(this.#i, + this.#i + length);
147 this.#i += length;
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);

Callers 4

verifyMethod · 0.95
decodeFunction · 0.95
verifyMethod · 0.95
decodeSANFunction · 0.80

Calls 2

getTagMethod · 0.95
getLengthMethod · 0.95

Tested by

no test coverage detected