MCPcopy Create free account
hub / github.com/ddnet/ddnet / Close

Method Close

src/engine/shared/datafile.cpp:680–695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

678}
679
680void CDataFileReader::Close()
681{
682 if(!m_pDataFile)
683 {
684 return;
685 }
686
687 for(int i = 0; i < m_pDataFile->m_Header.m_NumRawData; i++)
688 {
689 free(m_pDataFile->m_ppDataPtrs[i]);
690 }
691
692 io_close(m_pDataFile->m_File);
693 free(m_pDataFile);
694 m_pDataFile = nullptr;
695}
696
697bool CDataFileReader::IsOpen() const
698{

Callers 4

ShutdownMethod · 0.45
LoadMethod · 0.45
UnloadMethod · 0.45
RunMethod · 0.45

Calls 1

io_closeFunction · 0.85

Tested by

no test coverage detected