MCPcopy
hub / github.com/gildas-lormeau/zip.js / initStream

Function initStream

index.cjs:3174–3180  ·  view source on GitHub ↗
(stream, initSize)

Source from the content-addressed store, hash-verified

3172}
3173
3174async function initStream(stream, initSize) {
3175 if (stream.init && !stream.initialized) {
3176 await stream.init(initSize);
3177 } else {
3178 return Promise.resolve();
3179 }
3180}
3181
3182function readUint8Array(reader, offset, size, diskNumber) {
3183 return reader.readUint8Array(offset, size, diskNumber);

Callers 10

writeMethod · 0.70
getEntriesGeneratorMethod · 0.70
getDataMethod · 0.70
addFileFunction · 0.70
getFileEntryFunction · 0.70
closeFileFunction · 0.70
getDataMethod · 0.70
importZipMethod · 0.70
exportZipMethod · 0.70
initReadersFunction · 0.70

Calls 1

initMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…