Skip to main content

Module writer

Module writer 

Source
Expand description

Level-2 TQCV corpus file writer.

Protocol:

  1. CodecFileWriter::create โ€” open file, write TQCX header (tentative).
  2. CodecFileWriter::append โ€” write one record (4-byte length prefix + Level-1 payload).
  3. CodecFileWriter::finalize โ€” back-patch vector_count and flip magic to TQCV.

Structsยง

CodecFileWriter
Streaming writer for a Level-2 TQCV corpus file.