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

Method getObjectIdentifier

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

Source from the content-addressed store, hash-verified

119 return this.getChunk(this.getLength());
120 }
121 getObjectIdentifier() {
122 if (this.getTag() !== 0x06)
123 throw new Error("BER: not an object identifier");
124 return this._getObjectIdentifier(this.getLength())
125 }
126 _getObjectIdentifier(len) {
127 let i = this.#a[this.#i++];
128 const oid = new Uint32Array(new ArrayBuffer((2 + len) << 2, {maxByteLength: (2 + len) << 2}));

Callers 4

decryptMethod · 0.95
decodeFunction · 0.80
getSPKFunction · 0.80
decodeSPKIFunction · 0.80

Calls 3

getTagMethod · 0.95
_getObjectIdentifierMethod · 0.95
getLengthMethod · 0.95

Tested by

no test coverage detected