Developer Reference for Intel® Integrated Performance Primitives 2019

EncodeLZ4HashTableInit, EncodeLZ4DictHashTableInit

Initializes the LZ4 hash table.

Syntax

IppStatus ippsEncodeLZ4HashTableInit_8u(Ipp8u* pHashTable, int srcLen);

IppStatus ippsEncodeLZ4DictHashTableInit_8u(Ipp8u* pHashTable, int srcLen);

Include Files

ippdc.h

Domain Dependencies

Headers: ippcore.h, ippvm.h, ipps.h

Libraries: ippcore.lib, ippvm.lib, ipps.lib

Parameters

pHashTable

Pointer to the LZ4 hash table.

srcLen

Length of the source data for compression.

Description

This function initializes the LZ4 hash table. Before using this function, compute the size of the LZ4 hash table using the EncodeLZ4HashTableGetSize function.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error if the pHashTable pointer is NULL.

ippStsSizeErr

Indicates an error if the srcLen value is less than, or equal to zero.

Example

LZ4.c