#include <revolution/nand.h>
s32 NANDRead(NANDFileInfo *info, void *buf, u32 length);
info |
Pointer to a NANDFileInfo structure. |
buf |
Pointer to the write destination for the data that was read. The write buffer must be 32-byte aligned. |
length |
Number of bytes to read. This value must be a multiple of 32. |
Returns the number of bytes for the read data when the read is successful. When the write fails, one of the following codes is returned:
NAND_RESULT_ACCESS
NAND_RESULT_AUTHENTICATION
NAND_RESULT_CORRUPT
NAND_RESULT_ECC_CRIT
NAND_RESULT_INVALID
NAND_RESULT_UNKNOWN
NAND_RESULT_FATAL_ERROR
Read data from files in the internal flash memory.
NANDReadAsync, NANDWrite, NANDWriteAsync, NANDSeek, NANDSeekAsync
06/16/2006 Initial version.
08/15/2006 Added AUTHENTICATION result code.
CONFIDENTIAL