SZFILE_Get

Syntax

#include <cafe/szfile.h>

u8 *SZFILE_Get(SZFILE_ARC *apArc, char const *apFileName,
                u32 *apRetFileBytes);

Parameters

apArc Pointer to archive control structure for the 7-Zip file.
apFileName Null-terminated ASCII file path and name within the archive. Any leading slashes on the name are ignored.
apRetFileBytes Pointer to u32 to receive number of bytes in the uncompressed file.

Return Values

Returns a pointer to the byte-aligned uncompressed data of the file. This alignment cannot be changed. Returns NULL if the file cannot be found or if there is an error.

Description

This is a helper function used to access the data of a file and have any unpacking that needs to be performed executed automatically. It is implemented using the SZFILE_FindInArc and SZFILE_GetUnpackedFile functions.

Do Not Call From

Multiple threads This function is not thread-safe.

See Also

SZFILE helper library and demo
SZFILE_CreateArc
SZFILE_UnpackStream
SZFILE_FindInArc
SZFILE_GetUnpackedFile
SZFILE_PurgeArc
LzmaCompress
LzmaUncompress

Revision History

2013/05/06 Initial version.


CONFIDENTIAL