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

Method readBytes

index.js:128–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126 }
127
128 readBytes() {
129 const end = this.readVarint() + this.pos,
130 buffer = this.buf.subarray(this.pos, end);
131 this.pos = end;
132 return buffer;
133 }
134
135 // verbose for performance reasons; doesn't affect gzipped size
136

Callers 2

pbf.test.jsFile · 0.80
readEnvelopeFunction · 0.80

Calls 1

readVarintMethod · 0.95

Tested by

no test coverage detected