MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / Soloud_Filehack_fseek

Function Soloud_Filehack_fseek

extlibs/soloud/src/core/soloud_file.cpp:264–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262 }
263
264 int Soloud_Filehack_fseek(Soloud_Filehack *f, int idx, int base)
265 {
266 SoLoud::File *fp = (SoLoud::File *)f;
267 switch (base)
268 {
269 case SEEK_CUR:
270 fp->seek(fp->pos() + idx);
271 break;
272 case SEEK_END:
273 fp->seek(fp->length() + idx);
274 break;
275 default:
276 fp->seek(idx);
277 }
278 return 0;
279 }
280
281 int Soloud_Filehack_ftell(Soloud_Filehack *f)
282 {

Callers

nothing calls this directly

Calls 3

posMethod · 0.80
seekMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected