Index

C/C++ Functions

fxBufferDecompress

DT_SWORD fxBufferDecompress(DT_AUX_INFO* info, DT_UBYTE* raw_addr, DT_SLONG* raw_len, const DT_UBYTE* compr_addr, DT_SLONG compr_len)

Short Description: Decompress data in buffer

This function attempts to decompress compr_len bytes of data in the buffer pointed by compr_addr, placing the result in the buffer pointed by raw_addr. The data compression format is specified by the FileFormat member variable of the info structure.

Parameters

ParameterDescription

info

Pointer to the DT_AUX_INFO structure containing the applicable initialization parameters.

raw_addr

A valid pointer to a user-supplied buffer to which the function will decompress the data.

raw_len

On entry, raw_len points to a value describing the size of the buffer to which the function will decompress the data, in bytes. Your application should ensure that this value is large enough to hold the entire decompressed data. On exit, this value will be updated to hold the actual length of the decompressed data, in bytes.

compr_addr

A valid pointer to a buffer that holds compressed data.

compr_len

Size of the compressed data, in bytes.

Return Value

The function returns 1 if successful and 0 otherwise.

 

Index