nn::cx::SecureUncompressAny Function

Syntax

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

Arguments

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.

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


CONFIDENTIAL