#include <revolution/vf.h>
s32 VFGetFileSizeByFd( VFFile* file );
file |
The file descriptor. |
Success: File size (0 or higher) A size of 2 GB or more is returned as 2 GB (2,147,483,647 bytes )
Failure: -1 (at this time, VF errors can be verified with VFGetLastError)
Gets the file size in bytes from the file descriptor. To get an accurate file size for 2 GB or higher, use the VFGetFileSizeU32ByFd function.
VFGetFileSizeU32ByFd, VFGetFileSize, VFGetFileSizeU32
2008/12/16 Added a description about the limits on the return values
2006/06/09 Initial version
CONFIDENTIAL