mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-12 07:48:16 -05:00
27 lines
831 B
C++
27 lines
831 B
C++
#pragma once
|
|
#include "Writing/OutputStreamProcessor.h"
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
|
|
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;
|
|
};
|