MCPcopy
hub / github.com/webpack/webpack / checkOverflow

Method checkOverflow

lib/serialization/BinaryMiddleware.js:193–200  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

191 }
192
193 checkOverflow() {
194 if (
195 this.currentPosition >= /** @type {Buffer} */ (this.currentBuffer).length
196 ) {
197 this.currentPosition = 0;
198 this.nextDataItem();
199 }
200 }
201
202 /**
203 * Checks whether n bytes are available in the current buffer.

Callers 5

readMethod · 0.95
readUpToMethod · 0.95
readU8Method · 0.95
readU32Method · 0.95

Calls 1

nextDataItemMethod · 0.95

Tested by

no test coverage detected