nn::cx::SecureUncompressAny Function

Syntax

#include <nn/cx.h>

s32 SecureUncompressAny(
     const void * srcp,
     u32 srcSize,
     void * destp
);

Parameters

Name Description
in srcp Compressed data address.
in srcSize Compressed data size.
out destp Decompressed data address.

Return Values

Returns 0 if the conversion succeeds, and a negative error code if it fails.

Description

Detects the compression format from the data header and executes the appropriate decompression process while checking for errors.

Because they do not have headers, LZ backward compressed files (BLZ) cannot be handled by this API. In addition, LH and LRC files that require a work buffer cannot be handled by this API.

This function results in the linkage of the decompression code for all compression types. If you are using specific compression formats, we recommend using the decompression functions applicable to those formats.

Revision History

2010/11/10
Initial version.

CONFIDENTIAL