LZ4 API Guide  1.00.01.00
Data Fields
LZ4_compressBlockParams Struct Reference

Compression parameters for a single LZ4 block. More...

#include <lz4.h>

Data Fields

const void * src
 Pointer to the source data buffer to compress. More...
 
void * dst
 Pointer to the destination data buffer to store compressed data. More...
 
uint32_t length
 Length of source data buffer. More...
 
void * hashTable
 Pointer to memory block with pow2(hashLog2Size) bytes allocated. More...
 
uint16_t hashLog2Size
 Power of two used to determine the hash table size. More...
 
bool addBlockChecksum
 

Detailed Description

Compression parameters for a single LZ4 block.

Field Documentation

§ src

const void* LZ4_compressBlockParams::src

Pointer to the source data buffer to compress.

Referenced by LZ4_compressBlock().

§ dst

void* LZ4_compressBlockParams::dst

Pointer to the destination data buffer to store compressed data.

Referenced by LZ4_compressBlock().

§ length

uint32_t LZ4_compressBlockParams::length

Length of source data buffer.

Referenced by LZ4_compressBlock().

§ hashTable

void* LZ4_compressBlockParams::hashTable

Pointer to memory block with pow2(hashLog2Size) bytes allocated.

Referenced by LZ4_compressBlock().

§ hashLog2Size

uint16_t LZ4_compressBlockParams::hashLog2Size

Power of two used to determine the hash table size.

Referenced by LZ4_compressBlock().

§ addBlockChecksum

bool LZ4_compressBlockParams::addBlockChecksum

Add checksum to each compressed block. Decreases compression performance. Valid values are:

  • false
  • true

The documentation for this struct was generated from the following file:
© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale