MCPcopy Create free account
hub / github.com/mapbox/pbf / constructor

Method constructor

index.js:226–231  ·  view source on GitHub ↗

* @param {Uint8Array | ArrayBuffer} [buf]

(buf = new Uint8Array(16))

Source from the content-addressed store, hash-verified

224 * @param {Uint8Array | ArrayBuffer} [buf]
225 */
226 constructor(buf = new Uint8Array(16)) {
227 this.buf = ArrayBuffer.isView(buf) ? buf : new Uint8Array(buf);
228 this.dataView = new DataView(this.buf.buffer);
229 this.pos = 0;
230 this.length = this.buf.length;
231 }
232
233 /**
234 * @param {number} tag

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected