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

Method addString

src/packFileSerializer.ts:2479–2481  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

2477 }
2478 // Synchronously add string as buffer
2479 addString(value: string): void {
2480 this.buffers.push(Buffer.from(value, "utf8"));
2481 }
2482 // Get current accumulated size
2483 getCurrentSize(): number {
2484 return this.buffers.reduce((size, buf) => size + buf.length, 0);

Callers 4

writePackAppendFastFunction · 0.95
writePackSortedFunction · 0.95
writePackLegacyFunction · 0.95
writeStartGamePackFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected