mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-06 21:14:58 -06:00
Fix Lizard for new Zstandard version
This commit is contained in:
@@ -51,6 +51,15 @@
|
||||
#include "lizard_compress_lz4.h"
|
||||
#include "../zstd/huf.h"
|
||||
|
||||
#define HUF_WORKSPACE_SIZE_U32 (HUF_WORKSPACE_SIZE / 4)
|
||||
static inline size_t HUF_compress(void* dst, size_t dstSize, const void* src, size_t srcSize)
|
||||
{
|
||||
unsigned workSpace[HUF_WORKSPACE_SIZE_U32];
|
||||
return HUF_compress1X_repeat(dst, dstSize, src, srcSize,
|
||||
HUF_SYMBOLVALUE_MAX, HUF_TABLELOG_DEFAULT,
|
||||
workSpace, sizeof(workSpace),
|
||||
NULL, NULL, 0);
|
||||
}
|
||||
|
||||
/* *************************************
|
||||
* Local Macros
|
||||
|
||||
@@ -64,6 +64,10 @@ typedef enum { full = 0, partial = 1 } earlyEnd_directive;
|
||||
#endif
|
||||
#include "../zstd/huf.h"
|
||||
|
||||
static inline size_t HUF_decompress(void* dst, size_t maxDstSize, const void* src, size_t srcSize)
|
||||
{
|
||||
return HUF_decompress1X_usingDTable(dst, maxDstSize, src, srcSize, NULL, 0);
|
||||
}
|
||||
|
||||
/*-*****************************
|
||||
* Decompression functions
|
||||
|
||||
Reference in New Issue
Block a user