Developer Reference for Intel® Integrated Performance Primitives
Performs LZ4 encoding.
IppStatus ippsEncodeLZ4Safe_8u(const Ipp8u* pSrc, int* srcLen, Ipp8u* pDst, int* pDstLen, Ipp8u* pHashTable);
ippdc.h
Headers: ippcore.h, ippvm.h, ipps.h
Libraries: ippcore.lib, ippvm.lib, ipps.lib
pSrc |
Pointer to the source data. |
srcLen |
Length of the source data for compression. |
pDst |
Pointer to the compressed data. |
pDstLen |
Pointer to the length of the destination buffer and the length of the compressed data. |
pHashTable |
Pointer to the LZ4 hash table. |
This function performs encoding of the source data pSrc using the LZ4 algorithm. The length of the compressed data is set to pDstLen. The length of the processed source data is set to pSrcLen
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error if at lease one of the specified pointers is NULL. |
ippStsSizeErr |
Indicates an error if the srcLen or dstLen value is less than, or equal to zero. |
ippStsDstSizeLessExpectedErr |
Indicates an error if the destination buffer has insufficient length. |