mirror of
https://github.com/Xevion/easy7zip.git
synced 2026-01-31 06:24:13 -06:00
Fix Lizard for new Zstandard version
This commit is contained in:
@@ -51,6 +51,15 @@
|
|||||||
#include "lizard_compress_lz4.h"
|
#include "lizard_compress_lz4.h"
|
||||||
#include "../zstd/huf.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
|
* Local Macros
|
||||||
|
|||||||
@@ -64,6 +64,10 @@ typedef enum { full = 0, partial = 1 } earlyEnd_directive;
|
|||||||
#endif
|
#endif
|
||||||
#include "../zstd/huf.h"
|
#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
|
* Decompression functions
|
||||||
|
|||||||
Reference in New Issue
Block a user