(buffer: Uint8Array, cursor: number)
| 20 | import { PlatformBuffer } from "../platformBuffer"; |
| 21 | |
| 22 | const read1 = (buffer: Uint8Array, cursor: number) => { |
| 23 | return String.fromCharCode(buffer[cursor]); |
| 24 | }; |
| 25 | const read2 = (buffer: Uint8Array, cursor: number) => { |
| 26 | return String.fromCharCode(buffer[cursor], buffer[cursor + 1]); |
| 27 | }; |