MCPcopy Create free account
hub / github.com/Shazbot/WH3-Mod-Manager / ensurePackFilesReadyForWrite

Function ensurePackFilesReadyForWrite

src/packFileSerializer.ts:2334–2339  ·  view source on GitHub ↗
(packFiles: NewPackedFile[])

Source from the content-addressed store, hash-verified

2332 return packFile;
2333};
2334const ensurePackFilesReadyForWrite = (packFiles: NewPackedFile[]): NewPackedFile[] => {
2335 for (const packFile of packFiles) {
2336 ensurePackFileReadyForWrite(packFile);
2337 }
2338 return packFiles;
2339};
2340// Stream-based writing system with write queuing for better performance
2341class StreamWriter {
2342 private writeStream: WriteStream;

Callers 4

writePackStreamFunction · 0.85
writePackAppendFastFunction · 0.85
writePackSortedFunction · 0.85
writePackLegacyFunction · 0.85

Calls 1

Tested by

no test coverage detected