(str: string)
| 84 | } |
| 85 | } |
| 86 | writeStringNo(str: string) { |
| 87 | const encode = new TextEncoder().encode(str); |
| 88 | for (const thing of encode) { |
| 89 | this.write8(thing); |
| 90 | } |
| 91 | } |
| 92 | getBuffer() { |
| 93 | const buf = new ArrayBuffer(this.i); |
| 94 | const ar1 = new Uint8Array(buf); |