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

Method flush

src/packFileSerializer.ts:2493–2499  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2491 }
2492 // Force flush all accumulated buffers
2493 async flush(): Promise<void> {
2494 if (this.buffers.length > 0) {
2495 const combinedBuffer = Buffer.concat(this.buffers);
2496 await this.file.write(combinedBuffer);
2497 this.buffers = []; // Reset buffers
2498 }
2499 }
2500}
2501// Stream-based version of writeFieldBuffered with better memory management
2502const writeFieldBufferedStream = async (streamWriter: StreamWriter, schemaFields: SchemaField[]) => {

Callers 6

writePackAppendFastFunction · 0.95
writePackSortedFunction · 0.95
writePackLegacyFunction · 0.95
writeStartGamePackFunction · 0.95
flushIfNeededMethod · 0.95
writeFieldBufferedFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected