Skip to content

Instantly share code, notes, and snippets.

@terrelln
Created November 9, 2016 00:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save terrelln/cd54a9f1a31cbad57ddfe2abd6583780 to your computer and use it in GitHub Desktop.
Save terrelln/cd54a9f1a31cbad57ddfe2abd6583780 to your computer and use it in GitHub Desktop.
#define LZ4_STREAMSIZE_U64 ((1 << (LZ4_MEMORY_USAGE-3)) + 4)
#define LZ4_STREAMSIZE (LZ4_STREAMSIZE_U64 * sizeof(long long))
typedef struct {
union {
struct LZ4_stream_t_internal internal;
long long table[LZ4_STREAMSIZE_U64];
};
} LZ4_stream_t;
typedef struct {
U32 hashTable[HASH_SIZE_U32];
U32 currentOffset;
U32 initCheck;
const BYTE* dictionary;
BYTE* bufferStart; /* obsolete, used for slideInputBuffer */
U32 dictSize;
} LZ4_stream_t_internal;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment