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

Method addInt8

src/packFileSerializer.ts:2372–2375  ·  view source on GitHub ↗
(value: number)

Source from the content-addressed store, hash-verified

2370 }
2371 // Synchronously add byte as buffer
2372 addInt8(value: number): void {
2373 reusableBuffers.i8.writeInt8(value, 0);
2374 this.addBuffer(Buffer.from(reusableBuffers.i8));
2375 }
2376 // Synchronously add string as buffer
2377 addString(value: string): void {
2378 this.addBuffer(Buffer.from(value, "utf8"));

Callers 1

writePackStreamFunction · 0.45

Calls 1

addBufferMethod · 0.95

Tested by

no test coverage detected