()
| 88 | } |
| 89 | |
| 90 | public readByte(): number { |
| 91 | if (this.position >= this.length) |
| 92 | throw 'ByteArray out of bounds read. Positon=' + this.position + ', Length=' + this.length; |
| 93 | |
| 94 | const view = new Int8Array(this.arraybytes); |
| 95 | |
| 96 | return view[ this.position++ ]; |
| 97 | } |
| 98 | |
| 99 | public readBytes(bytes: ByteArray, offset: number = 0, length: number = 0): void { |
| 100 | if (length == null) |
no outgoing calls
no test coverage detected