| Top |
GMimeFilter *
g_mime_filter_rtf_compressed_new (void);
Creates a filter for compressed or uncompressed [MS-OXRTFCP] data.
GMimeRtfCompressionMode
g_mime_filter_rtf_compressed_get_compression_mode
(GMimeFilterRtfCompressed *filter);
Gets the raw COMPTYPE field after at least twelve header bytes have been processed. Unknown wire values are preserved.
gboolean
g_mime_filter_rtf_compressed_is_valid_crc32
(GMimeFilterRtfCompressed *filter);
Checks the CRC once the header and content have been processed. Uncompressed content requires a zero CRC. Unknown modes are invalid. A matching CRC alone does not validate the RTF document or its raw size.
typedef struct _GMimeFilterRtfCompressed GMimeFilterRtfCompressed;
Incrementally decompresses an RtfCompressed MAPI property. Unknown compression modes are discarded. Bytes beyond the declared content length or LZFu end marker are ignored. Check the CRC after completion; a truncated or corrupt stream may have produced partial output.