MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / size

Method size

src/common/OSFile.cpp:303–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303unsigned int OSFile::size() {
304 if (!isOpen()) {
305 return 0;
306 }
307
308 unsigned int pos = ftell(info->fp);
309 fseek(info->fp, 0, SEEK_END);
310 unsigned int len = ftell(info->fp);
311 fseek(info->fp, pos, SEEK_SET);
312
313 return len;
314}
315
316unsigned int OSFile::tell() {
317 if (!isOpen()) {

Callers 15

getVoterCountMethod · 0.45
getResponseCountMethod · 0.45
getFileScanCountMethod · 0.45
getNextFileMethod · 0.45
windowsAddFileStackMethod · 0.45
linuxAddFileStackMethod · 0.45
setHttpHeaderMethod · 0.45
setPostModeMethod · 0.45
performMethod · 0.45
finalizationMethod · 0.45
getResourceMethod · 0.45
computeAlwaysAuthMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected