43 using Compressor::Compressor;
45 [[nodiscard]] std::optional<ErrorString> compress(std::span<uint8_t const>
const& rawData)
override;
46 [[nodiscard]] std::optional<ErrorString> uncompress(std::span<uint8_t const>
const& data)
override;
48 void setMaxUncompressedSize(uint32_t value);
49 [[nodiscard]] uint32_t getMaxUncompressedSize()
const;
52 uint32_t g_maxUncompressedSize{FGE_COMPRESSOR_LZ4_DEFAULT_MAX_SIZE};
58 using Compressor::Compressor;
60 [[nodiscard]] std::optional<ErrorString> compress(std::span<uint8_t const>
const& rawData)
override;
61 [[nodiscard]] std::optional<ErrorString> uncompress(std::span<uint8_t const>
const& data)
override;
63 void setMaxUncompressedSize(uint32_t value);
64 [[nodiscard]] uint32_t getMaxUncompressedSize()
const;
66 void setCompressionLevel(
int value);
67 [[nodiscard]]
int getCompressionLevel()
const;
70 uint32_t g_maxUncompressedSize{FGE_COMPRESSOR_LZ4HC_DEFAULT_MAX_SIZE};
71 int g_compressionLevel{FGE_COMPRESSOR_LZ4HC_DEFAULT_COMPRESSION_LEVEL};