MCPcopy Create free account
hub / github.com/beefytech/Beef / Eof

Method Eof

BeefySysLib/FileStream.cpp:78–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78bool FileStream::Eof()
79{
80 if (mCacheBuffer != NULL)
81 {
82 fseek(mFP, 0, SEEK_END);
83 return mVFilePos >= ftell(mFP);
84 }
85
86 int aPos = (int)ftell(mFP);
87 fseek(mFP, 0, SEEK_END);
88 int aSize = (int)ftell(mFP);
89 fseek(mFP, aPos, SEEK_SET);
90 return aPos == aSize;
91}
92
93int FileStream::GetSize()
94{

Callers

nothing calls this directly

Calls 2

BfpFile_ReadFunction · 0.50
BfpFile_SeekFunction · 0.50

Tested by

no test coverage detected