(data, offset)
| 2537 | // A stateful parser that changes the offset whenever a value is retrieved. |
| 2538 | // The data is a DataView. |
| 2539 | function Parser(data, offset) { |
| 2540 | this.data = data; |
| 2541 | this.offset = offset; |
| 2542 | this.relativeOffset = 0; |
| 2543 | } |
| 2544 | |
| 2545 | Parser.prototype.parseByte = function() { |
| 2546 | var v = this.data.getUint8(this.offset + this.relativeOffset); |
nothing calls this directly
no outgoing calls
no test coverage detected