MCPcopy Index your code
hub / github.com/assaultcube/AC / size

Method size

source/src/stream.cpp:536–542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

534#endif
535
536long stream::size()
537{
538 long pos = tell(), endpos;
539 if(pos < 0 || !seek(0, SEEK_END)) return -1;
540 endpos = tell();
541 return pos == endpos || seek(pos, SEEK_SET) ? endpos : -1;
542}
543
544bool stream::getline(char *str, int len)
545{

Callers 6

getfilesizeFunction · 0.45
loadfileFunction · 0.45
demoworkerthreadFunction · 0.45
enddemorecordFunction · 0.45
loopvFunction · 0.45
HuntEnemyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected