MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / seek

Method seek

TheForceEngine/TFE_FileSystem/filestream.cpp:148–160  ·  view source on GitHub ↗

derived from Stream

Source from the content-addressed store, hash-verified

146
147//derived from Stream
148bool FileStream::seek(s32 offset, Origin origin/*=ORIGIN_START*/)
149{
150 const s32 forigin[] = { SEEK_SET, SEEK_END, SEEK_CUR };
151 if (m_file)
152 {
153 return fseek(m_file, offset, forigin[origin]) == 0;
154 }
155 else if (m_archive)
156 {
157 return m_archive->seekFile(offset, forigin[origin]);
158 }
159 return false;
160}
161
162size_t FileStream::getLoc()
163{

Callers 11

validateMethod · 0.45
openMethod · 0.45
openFileMethod · 0.45
seekFileMethod · 0.45
addFileMethod · 0.45
openFileMethod · 0.45
seekFileMethod · 0.45
openFileMethod · 0.45
seekFileMethod · 0.45
agent_readConfigDataFunction · 0.45

Calls 1

seekFileMethod · 0.45

Tested by

no test coverage detected