Poke_Transporter_GB/tools/make-file-container/src
Philippe Symons 1d57c10333 Replace text_data_table with FileContainerReader
text_data_table was very similar in concept to FileContainerReader.

But FileContainerReader is generally more flexible, as it allows you to split up your table into several chunks.
This takes away the worry of these files getting too big to compress.

However, we now have a maintenance duty for the text_tables file, which maps a table index to the list of chunks.

We also need to be careful about every use of FileContainerReader::getPointerToFileInDecompressionBuffer().

Using it is fine when you're dealing with a single chunk or if you're sure the file doesn't span multiple chunks.
But the moment you seek to a different chunk, any pointer obtained from getPointerToFileInDecompressionBuffer()
becomes stale as the decompression buffer gets overwritten.

Still, this function is necessary for high memory pressure situations, such as mystery_gift_builder, because we can't maintain
multiple lineBuffers there.
2026-05-20 13:31:28 +02:00
..
CHeaderWriter.cpp Use make-file-container for the universal payloads! 2026-05-18 13:57:44 +02:00
FileContainerChunkWriter.cpp Add make-file-container tool 2026-05-18 12:44:35 +02:00
main.cpp Replace text_data_table with FileContainerReader 2026-05-20 13:31:28 +02:00
utils.cpp Use make-file-container for the universal payloads! 2026-05-18 13:57:44 +02:00