Implement File.Size (#2131)

* Implement file size method for already open files

* Switch from fseek/ftell to fileno/fstat size reading
This commit is contained in:
Peak
2024-04-13 18:14:52 +00:00
committed by GitHub
parent dbec0b165c
commit 5c507cc35c
4 changed files with 49 additions and 0 deletions
+4
View File
@@ -138,6 +138,10 @@ public:
{
return filesystem->FileExists(pFileName, pPathID);
}
unsigned int Size(FileHandle_t file) override
{
return filesystem->Size(file);
}
unsigned int Size(const char *pFileName, const char *pPathID = 0) override
{
return filesystem->Size(pFileName, pPathID);