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

Function initStream

index-native.cjs:3170–3176  ·  view source on GitHub ↗
(stream, initSize)

Source from the content-addressed store, hash-verified

3168}
3169
3170async function initStream(stream, initSize) {
3171 if (stream.init && !stream.initialized) {
3172 await stream.init(initSize);
3173 } else {
3174 return Promise.resolve();
3175 }
3176}
3177
3178function readUint8Array(reader, offset, size, diskNumber) {
3179 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…