LZ4 API Guide  1.00.01.00
Functions
xxHash

The xxHash API set includes a single function for computing the xxHash of a data block. This function is provided to allow comparability with the official LZ4 framing structure however is not very efficient to run on microcontrollers. If a checksum is necessary the application can use an available CRC module and the LZ4 block API's to create a custom framing scheme. See [LZ4_ex2_custom_frame]() for an example of how to create this. More...

Functions

uint32_t LZ4_xxHashCompute (const void *src, uint32_t length, uint32_t seed)
 Compute xxhash checksum for a block of data. More...
 

Detailed Description

The xxHash API set includes a single function for computing the xxHash of a data block. This function is provided to allow comparability with the official LZ4 framing structure however is not very efficient to run on microcontrollers. If a checksum is necessary the application can use an available CRC module and the LZ4 block API's to create a custom framing scheme. See [LZ4_ex2_custom_frame]() for an example of how to create this.

Function Documentation

§ LZ4_xxHashCompute()

uint32_t LZ4_xxHashCompute ( const void *  src,
uint32_t  length,
uint32_t  seed 
)

Compute xxhash checksum for a block of data.

Used to compute and verify checksums for the LZ4 frame and block format.

Parameters
srcPointer to the data block.
lengthLength of data block.
seedInitialization value.
Returns
The computed xxhash checksum.
© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale