FileSys/Kernel: Implement SetSize service call for File objects.

This commit is contained in:
Emmanuel Gil Peyrot
2014-10-06 19:58:37 +02:00
parent d34673990b
commit 23c2fbfc7a
6 changed files with 49 additions and 0 deletions
+7
View File
@@ -43,6 +43,13 @@ public:
*/
virtual size_t GetSize() const = 0;
/**
* Set the size of the file in bytes
* @param size New size of the file
* @return true if successful
*/
virtual bool SetSize(const u64 size) const = 0;
/**
* Close the file
* @return true if the file closed correctly