MCPcopy Create free account
hub / github.com/MayaPosch/NymphCast / GetSize

Method GetSize

src/server/angelscript/add_on/scriptfile/scriptfile.cpp:341–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341int CScriptFile::GetSize() const
342{
343 if( file == 0 )
344 return -1;
345
346 int pos = ftell(file);
347 fseek(file, 0, SEEK_END);
348 int size = ftell(file);
349 fseek(file, pos, SEEK_SET);
350
351 return size;
352}
353
354int CScriptFile::GetPos() const
355{

Callers 9

ArrayToStringFunction · 0.45
DictionaryToStringFunction · 0.45
GetCommandLineArgsFunction · 0.45
WriteConfigToStreamFunction · 0.45
StoreMethod · 0.45
StringJoinFunction · 0.45
CScriptGridMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected