mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-15 01:07:58 -05:00
Add IW3 zone writing
This commit is contained in:
26
src/ZoneWriting/Writing/Processor/OutputProcessorDeflate.h
Normal file
26
src/ZoneWriting/Writing/Processor/OutputProcessorDeflate.h
Normal file
@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
|
||||
#include "Writing/OutputStreamProcessor.h"
|
||||
|
||||
class OutputProcessorDeflate final : public OutputStreamProcessor
|
||||
{
|
||||
class Impl;
|
||||
Impl* m_impl;
|
||||
|
||||
static constexpr size_t DEFAULT_BUFFER_SIZE = 0x40000;
|
||||
|
||||
public:
|
||||
OutputProcessorDeflate();
|
||||
OutputProcessorDeflate(size_t bufferSize);
|
||||
~OutputProcessorDeflate() override;
|
||||
OutputProcessorDeflate(const OutputProcessorDeflate& other) = delete;
|
||||
OutputProcessorDeflate(OutputProcessorDeflate&& other) noexcept = default;
|
||||
OutputProcessorDeflate& operator=(const OutputProcessorDeflate& other) = delete;
|
||||
OutputProcessorDeflate& operator=(OutputProcessorDeflate&& other) noexcept = default;
|
||||
|
||||
void Write(const void* buffer, size_t length) override;
|
||||
void Flush() override;
|
||||
int64_t Pos() override;
|
||||
};
|
Reference in New Issue
Block a user