view src/lzfu.h @ 355:d1f930be4711

From Jeffrey Morlan: pst_build_id_ptr and pst_build_desc_ptr require that the first child of a BTree page have the same starting ID as itself. This is not required by the spec, and is not true in many real-world PSTs (presumably, the original first child of the page got deleted). Because of this, many emails are not being extracted from these PSTs. It also triggers an infinite loop in lspst (a separate bug, also fixed)
author Carl Byington <carl@five-ten-sg.com>
date Wed, 06 Jul 2016 10:12:22 -0700
parents cf3df962f1e5
children
line wrap: on
line source

#ifndef LZFU_H
#define LZFU_H

/** decompress lz compressed rtf data. The initial lz dictionary is preloaded
    with rtf specific data.
 * @param rtfcomp  pointer to the rtf compressed data
 * @param compsize size of the compressed data buffer
 * @param size     pointer to location to return size of the output buffer
 * @return         pointer to the output buffer containing the decompressed data.
 *                 The caller must free this buffer.
 */
char* pst_lzfu_decompress (char* rtfcomp, uint32_t compsize, size_t *size);

#endif