mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-08 05:48:19 -05:00
27 lines
907 B
C++
27 lines
907 B
C++
#pragma once
|
|
#include <memory>
|
|
|
|
#include "Writing/OutputStreamProcessor.h"
|
|
#include "Zone/XChunk/IXChunkProcessor.h"
|
|
|
|
class OutputProcessorXChunks final : public OutputStreamProcessor
|
|
{
|
|
class Impl;
|
|
Impl* m_impl;
|
|
|
|
public:
|
|
OutputProcessorXChunks(int numStreams, size_t xChunkSize);
|
|
OutputProcessorXChunks(int numStreams, size_t xChunkSize, size_t vanillaBufferSize);
|
|
~OutputProcessorXChunks() override;
|
|
|
|
OutputProcessorXChunks(const OutputProcessorXChunks& other) = delete;
|
|
OutputProcessorXChunks(OutputProcessorXChunks&& other) noexcept;
|
|
OutputProcessorXChunks& operator=(const OutputProcessorXChunks& other) = delete;
|
|
OutputProcessorXChunks& operator=(OutputProcessorXChunks&& other) noexcept;
|
|
|
|
void AddChunkProcessor(std::unique_ptr<IXChunkProcessor> chunkProcessor) const;
|
|
|
|
void Write(const void* buffer, size_t length) override;
|
|
int64_t Pos() override;
|
|
};
|