(str: string)
| 77 | } |
| 78 | } |
| 79 | writeString16(str: string) { |
| 80 | const encode = new TextEncoder().encode(str); |
| 81 | this.write16(encode.length); |
| 82 | for (const thing of encode) { |
| 83 | this.write8(thing); |
| 84 | } |
| 85 | } |
| 86 | writeStringNo(str: string) { |
| 87 | const encode = new TextEncoder().encode(str); |
| 88 | for (const thing of encode) { |