MCPcopy Create free account
hub / github.com/Code-Bullet/Jump-King / Parser

Function Parser

libraries/p5.js:2539–2543  ·  view source on GitHub ↗
(data, offset)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected