MCPcopy Create free account
hub / github.com/Illation/ETEngine / GetSize

Method GetSize

Engine/source/EtCore/FileSystem/Entry.cpp:230–240  ·  view source on GitHub ↗

--------------------------------- File::GetSize Get the size of the file in bytes

Source from the content-addressed store, hash-verified

228// Get the size of the file in bytes
229//
230uint64 File::GetSize()
231{
232 int64 size;
233 if (!FILE_BASE::GetEntrySize(m_Handle, size))
234 {
235 LOG("Getting File size failed", Error);
236 return std::numeric_limits<uint64>::max();
237 }
238
239 return static_cast<uint64>(size);
240}
241
242//---------------------------------
243// File::Delete

Callers 7

InitializeMethod · 0.45
AddFileMethod · 0.45
ArchetypeTest.cppFile · 0.45
SystemTest.cppFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected