(b: number)
| 114 | } |
| 115 | |
| 116 | public writeUnsignedByte(b: number): void { |
| 117 | this.ensureWriteableSpace(1); |
| 118 | |
| 119 | const view = new Uint8Array(this.arraybytes); |
| 120 | view[this.position++] = (~~b) & 0xff; // ~~ is cast to int in js... |
| 121 | |
| 122 | if (this.position > this.length) |
| 123 | this.length = this.position; |
| 124 | } |
| 125 | |
| 126 | public readUnsignedByte(): number { |
| 127 | if (this.position >= this.length) |
no test coverage detected