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

Method OpenFile

src/engine/shared/linereader.cpp:17–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17bool CLineReader::OpenFile(IOHANDLE File)
18{
19 if(!File)
20 {
21 return false;
22 }
23 char *pBuffer = io_read_all_str(File);
24 io_close(File);
25 if(pBuffer == nullptr)
26 {
27 return false;
28 }
29 OpenBuffer(pBuffer);
30 return true;
31}
32
33void CLineReader::OpenBuffer(char *pBuffer)
34{

Callers 15

LoadIndexfileMethod · 0.45
LoadMethod · 0.45
StoreSaveMethod · 0.45
AutoStatCSVMethod · 0.45
SaveSkinfileMethod · 0.45
DumpMethod · 0.45
StoreSaveMethod · 0.45
CallbackSaveImageMethod · 0.45
CallbackSaveSoundMethod · 0.45
LoadMethod · 0.45

Calls 2

io_read_all_strFunction · 0.85
io_closeFunction · 0.85

Tested by 1

TestFileLineReaderRawFunction · 0.36