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

Method close

TheForceEngine/TFE_FileSystem/filestream-posix.cpp:95–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void FileStream::close()
96{
97 if (m_file) {
98 fclose(m_file);
99 m_file = nullptr;
100 } else if (m_archive) {
101 m_archive->closeFile();
102 m_archive = nullptr;
103 }
104 m_mode = MODE_INVALID;
105}
106
107u32 FileStream::readContents(const char *filePath, void **output)
108{

Callers 1

readContentsMethod · 0.45

Calls 1

closeFileMethod · 0.45

Tested by

no test coverage detected