'LibPst'
lzfu.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

char * pst_lzfu_decompress (char *rtfcomp, uint32_t compsize, size_t *size)
 decompress lz compressed rtf data. More...
 

Function Documentation

◆ pst_lzfu_decompress()

char* pst_lzfu_decompress ( char *  rtfcomp,
uint32_t  compsize,
size_t *  size 
)

decompress lz compressed rtf data.

The initial lz dictionary is preloaded with rtf specific data.

Parameters
rtfcomppointer to the rtf compressed data
compsizesize of the compressed data buffer
sizepointer to location to return size of the output buffer
Returns
pointer to the output buffer containing the decompressed data. The caller must free this buffer.

Definition at line 38 of file lzfu.c.

References _lzfuheader::cbRawSize, _lzfuheader::cbSize, _lzfuheader::dwCRC, _lzfuheader::dwMagic, LE16_CPU, LE32_CPU, LZFU_INITDICT, LZFU_INITLENGTH, and pst_malloc().

Referenced by write_normal_email().

Here is the call graph for this function: