MCPcopy
hub / github.com/webpack/webpack / nextContent

Function nextContent

lib/serialization/FileMiddleware.js:264–269  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

262 let contentPosition = 0;
263 if (contentItemLength === 0) throw new Error(`Empty file ${name}`);
264 const nextContent = () => {
265 contentsIndex++;
266 contentItem = contents[contentsIndex];
267 contentItemLength = contentItem.length;
268 contentPosition = 0;
269 };
270 /**
271 * Processes the provided n.
272 * @param {number} n number of bytes to ensure

Callers 3

ensureDataFunction · 0.85
readSliceFunction · 0.85
deserializeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected