MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / seekpos

Method seekpos

framework/physfs_fs.cpp:118–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116 }
117
118 pos_type seekpos(pos_type pos, std::ios_base::openmode mode) override
119 {
120 PHYSFS_seek(file, pos);
121 if (mode & std::ios_base::in)
122 {
123 setg(egptr(), egptr(), egptr());
124 }
125
126 if (mode & std::ios_base::out)
127 {
128 LogError("ios::out set on read-only IFile \"%s\"", this->systemPath);
129 LogAssert(0);
130 setp(buffer.get(), buffer.get());
131 }
132
133 return PHYSFS_tell(file);
134 }
135
136 int_type overflow(int_type) override
137 {

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected