Nugget
|
#include <stddef.h>
#include <stdint.h>
Go to the source code of this file.
Functions | |
void | lz4_decompress_block (const void *source, const void *sourceEnd, void *dest) |
Decompress a block of lz4 compressed data. | |
Decompress a block of lz4 compressed data.
This function decompresses a block of lz4 compressed data. The source pointer should point to the start of the compressed data, and sourceEnd should point to the end of the compressed data. The dest pointer should point to a buffer that is large enough to hold the decompressed data, as the function does not perform any bounds checking. The function can decompress data in place, and the way the compression works allows for all of the compressed data to be at the end of the same buffer used to store the decompressed data. In this case, the whole of the compressed data will be completely overwritten by the decompressed data.
source | The pointer to the start of the compressed data. |
sourceEnd | The pointer to the end of the compressed data. |
dest | The pointer to the destination buffer where the decompressed data will be stored. |