nn::cx::CompressRL Function

Syntax

#include <nn/cx.h>

u32 CompressRL(
     const u8 * srcp,
     u32 size,
     u8 * dstp
);

Parameters

Name Description
in srcp Pointer to compression source data.
in size Compression source data size.
out dstp Pointer to compression target data (requires a buffer larger than the compression source data).

Return Values

Returns the size of the compressed data. If the compressed data is larger than the original data, compression is terminated and 0 is returned.

Description

Carries out run-length compression.

Argument values must adhere to the following restrictions:

Revision History

2011/04/06
Added text about the restriction on argument values.
2010/11/10
Initial version.

CONFIDENTIAL