nn::cx::SecureUncompressHuffman Function

Syntax

s32 SecureUncompressHuffman(
     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

Decompresses Huffman compressed data while checking for errors.

Expands Huffman compressed data, and writes in 8-bit units. The compressed data address must be 4-byte aligned. The decompressed data address must be 4-byte aligned, and the size of the region must be a multiple of 4 bytes.

Revision History

2010/11/10
Initial version.

CONFIDENTIAL