(num: number)
| 21 | } |
| 22 | |
| 23 | public addInt32(num: number): Writer { |
| 24 | this.ensure(4) |
| 25 | this.buffer[this.offset++] = (num >>> 24) & 0xff |
| 26 | this.buffer[this.offset++] = (num >>> 16) & 0xff |
| 27 | this.buffer[this.offset++] = (num >>> 8) & 0xff |
| 28 | this.buffer[this.offset++] = (num >>> 0) & 0xff |
| 29 | return this |
| 30 | } |
| 31 | |
| 32 | public addInt16(num: number): Writer { |
| 33 | this.ensure(2) |
no test coverage detected