2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-06-26 22:31:50 +00:00

Make sure xchunk write size can specified to be smaller than xchunk size to respect zlib to add size instead of removing size due to not being able to compress

This commit is contained in:
Jan
2021-03-18 11:47:41 +01:00
parent 7c0504603e
commit 2add1ba22d
4 changed files with 12 additions and 8 deletions

View File

@ -13,6 +13,7 @@ class OutputProcessorXChunks final : public OutputStreamProcessor
int m_stream_count;
size_t m_chunk_size;
size_t m_chunk_write_size;
size_t m_vanilla_buffer_size;
bool m_initialized;
@ -28,8 +29,8 @@ class OutputProcessorXChunks final : public OutputStreamProcessor
void WriteChunk();
public:
OutputProcessorXChunks(int numStreams, size_t xChunkSize);
OutputProcessorXChunks(int numStreams, size_t xChunkSize, size_t vanillaBufferSize);
OutputProcessorXChunks(int numStreams, size_t xChunkSize, size_t xChunkWriteSize);
OutputProcessorXChunks(int numStreams, size_t xChunkSize, size_t xChunkWriteSize, size_t vanillaBufferSize);
~OutputProcessorXChunks() override = default;
OutputProcessorXChunks(const OutputProcessorXChunks& other) = delete;