Add method byte

This commit is contained in:
Robert Schulze 2024-01-07 17:52:13 +00:00
parent 0f51e32bb5
commit 8a9d4cbf8a
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A
2 changed files with 3 additions and 1 deletions

View File

@ -50,7 +50,8 @@ UInt32 CompressionCodecZSTDQAT::doCompressData(const char * source, UInt32 sourc
void registerCodecZSTDQAT(CompressionCodecFactory & factory)
{
factory.registerCompressionCodec("ZSTD_QAT", {}, [&](const ASTPtr & arguments) -> CompressionCodecPtr
UInt8 method_code = static_cast<UInt8>(CompressionMethodByte::ZSTD_QPL);
factory.registerCompressionCodec("ZSTD_QAT", method_code, [&](const ASTPtr & arguments) -> CompressionCodecPtr
{
int level = CompressionCodecZSTD::ZSTD_DEFAULT_LEVEL;
if (arguments && !arguments->children.empty())

View File

@ -48,6 +48,7 @@ enum class CompressionMethodByte : uint8_t
FPC = 0x98,
DeflateQpl = 0x99,
GCD = 0x9a,
ZSTD_QPL = 0x9b,
};
}