Describes how to get the size of a large file through the directory entry class.
TEntry::FileSize() returns a 64-bit file size. TEntry::FileSize() replaces the function TEntry::iSize() as iSize() cannot represent a file size beyond 2GB-1 (if treated as a signed int) or beyond 4GB-1 (if treated as an unsigned int).
Replace calls to TEntry::iSize() with TEntry::FileSize() for large files.
TInt r; TEntry myFileEntry; RFs TheFs; TFileName myFileName; ... r = TheFs.Entry(myFileName, myFileEntry); ... // TInt size = myFileEntry.iSize; TInt64 size = myFileEntry.FileSize();
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.