MCPcopy Create free account
hub / github.com/assaultcube/AC / getfilesize

Function getfilesize

source/src/stream.cpp:1065–1072  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1063}
1064
1065int getfilesize(const char *filename)
1066{
1067 stream *f = openfile(filename, "rb");
1068 if(!f) return -1;
1069 int len = f->size();
1070 delete f;
1071 return len;
1072}
1073
1074stream *opentempfile(const char *name, const char *mode)
1075{

Callers 5

trymapfilesFunction · 0.85
checklocalmapFunction · 0.85
readserverconfigsthreadFunction · 0.85
load_worldFunction · 0.85
loopvFunction · 0.85

Calls 2

openfileFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected