#include <revolution/nand.h>
#define NAND_SEEK_SET 0
#define NAND_SEEK_CUR 1
#define NAND_SEEK_END 2
s32 NANDSeek(NANDFileInfo *info, s32 offset, s32 whence);
|
Pointer to a NANDFileInfo structure. |
||||||
|
Specifies the offset value. In unit of bytes. | ||||||
|
Specifies the seek base position.
|
Returns the new position in the file if the seek is successful. If the seek fails, one of the following codes is returned:
NAND_RESULT_ACCESS
NAND_RESULT_INVALID
NAND_RESULT_UNKNOWN
NAND_RESULT_FATAL_ERROR
Does a file seek. The start position of the next read/write is the offset plus whence. If the offset value is positive, the seek position moves from the base point to the end of the file. If the value is negative, the seek position moves from the base point toward the start of the file.
NANDSeekAsync, NANDRead, NANDReadAsync, NANDWrite, NANDWriteAsync
06/16/2006 Initial version.