(a)
| 71 | this.#bytes[this.#write++] = v >>> (n * 8); |
| 72 | } |
| 73 | writeChunk(a) { |
| 74 | const n = a.byteLength; |
| 75 | if (n <= 0) |
| 76 | return; |
| 77 | if (this.#write + n > this.#bytes.length) |
| 78 | this.morebuf(n); |
| 79 | this.#bytes.set((a instanceof Uint8Array) ? a : (new Uint8Array(a)), this.#write); |
| 80 | this.#write += n; |
| 81 | } |
| 82 | writeString(s) { |
| 83 | this.writeChunk(ArrayBuffer.fromString(s)); |
| 84 | } |
no test coverage detected