(num: number)
| 30 | } |
| 31 | |
| 32 | public addInt16(num: number): Writer { |
| 33 | this.ensure(2) |
| 34 | this.buffer[this.offset++] = (num >>> 8) & 0xff |
| 35 | this.buffer[this.offset++] = (num >>> 0) & 0xff |
| 36 | return this |
| 37 | } |
| 38 | |
| 39 | public addCString(string: string): Writer { |
| 40 | if (!string) { |
no test coverage detected