(file: BinaryFile, schemaField: SchemaField)
| 2525 | }; |
| 2526 | // Original writeField function (kept for compatibility) |
| 2527 | const 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 | }; |
| 2532 | const readUTFString = async (fileIn: BinaryFile) => { |
| 2533 | const length = await fileIn.readInt16(); |
| 2534 | // console.log('length is ' + length); |
no test coverage detected