()
| 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); |