diff --git a/engine/platform/include/file.hpp b/engine/platform/include/file.hpp index 4c3e503..13ca73a 100755 --- a/engine/platform/include/file.hpp +++ b/engine/platform/include/file.hpp @@ -41,6 +41,10 @@ namespace prism { fread(t, s == 0 ? sizeof(T) : s, 1, handle); } + void seek(const size_t s) { + fseek(handle, s, SEEK_CUR); + } + /// Reads a string. Assumes the length is an unsigned integer. void read_string(std::string& str) { unsigned int length = 0;