(b: number)
| 78 | } |
| 79 | |
| 80 | public writeByte(b: number): void { |
| 81 | this.ensureWriteableSpace(1); |
| 82 | |
| 83 | const view = new Int8Array(this.arraybytes); |
| 84 | view[ this.position++ ] = (~~b); // ~~ is cast to int in js... |
| 85 | if (this.position > this.length) { |
| 86 | this.length = this.position; |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | public readByte(): number { |
| 91 | if (this.position >= this.length) |
no test coverage detected