(value: string)
| 34 | } |
| 35 | |
| 36 | writeString(value: string): void { |
| 37 | const encoded = new TextEncoder().encode(value) |
| 38 | this.writeI32(encoded.length) |
| 39 | for (const byte of encoded) { |
| 40 | this.buffer.push(byte) |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | writeBool(value: boolean): void { |
| 45 | this.buffer.push(value ? 1 : 0) |
no test coverage detected