ZIPFILE_CalcCRC

Syntax

#include <cafe/zipfile.h>

u32 ZIPFILE_CalcCRC(u8 const *apData, u32 aBytes);

Parameters

apData Pointer to byte array to use as source to calculate CRC.
aBytes Number of bytes in the byte array pointed to by apData argument.

Return Values

Returns a 32-bit CRC value compatible with ZIP CRCs.

Description

Calculates CRCs used in ZIP files.

Do Not Call From

Multiple threads This function is not thread-safe.

See Also

ZIPFILE helper library and demo
ZIPFILE_CreateDir
ZIPFILE_Find
zlib Overview

Revision History

2011/10/19 Added Examplemake.
2011/03/11 Initial version.


CONFIDENTIAL