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

Function writeField

src/packFileSerializer.ts:2527–2531  ·  view source on GitHub ↗
(file: BinaryFile, schemaField: SchemaField)

Source from the content-addressed store, hash-verified

2525};
2526// Original writeField function (kept for compatibility)
2527const writeField = async (file: BinaryFile, schemaField: SchemaField) => {
2528 // Use the buffered approach for single field
2529 const buffer = serializeSchemaFieldToBuffer(schemaField);
2530 await file.write(buffer);
2531};
2532const readUTFString = async (fileIn: BinaryFile) => {
2533 const length = await fileIn.readInt16();
2534 // console.log('length is ' + length);

Callers 1

writePackLegacyFunction · 0.85

Calls 1

Tested by

no test coverage detected