MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / getSize

Method getSize

TheForceEngine/TFE_FileSystem/filestream.cpp:175–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175size_t FileStream::getSize()
176{
177 if (!m_file && !m_archive)
178 {
179 return 0;
180 }
181
182 size_t filesize = 0;
183 if (m_file)
184 {
185 seek(0, FileStream::ORIGIN_END);
186 filesize = getLoc();
187 seek(0, FileStream::ORIGIN_START);
188 }
189 else
190 {
191 filesize = m_archive->getFileLength();
192 }
193
194 return filesize;
195}
196
197bool FileStream::isOpen() const
198{

Callers 15

loadMessagesFunction · 0.45
readScriptFileTFEFunction · 0.45
addFileMethod · 0.45
loadFrameHdFunction · 0.45
getFrameFunction · 0.45
loadWaxHdFunction · 0.45
getWaxFunction · 0.45
getFunction · 0.45
getFunction · 0.45
loadSoundFileFunction · 0.45
loadKeyNamesFunction · 0.45
project_loadFunction · 0.45

Calls 1

getFileLengthMethod · 0.45

Tested by

no test coverage detected