diff options
Diffstat (limited to 'src/common/io/Stream.cpp')
-rw-r--r-- | src/common/io/Stream.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/io/Stream.cpp b/src/common/io/Stream.cpp index 4f2953f9..ad1dbd0e 100644 --- a/src/common/io/Stream.cpp +++ b/src/common/io/Stream.cpp @@ -1,7 +1,9 @@ #include "cru/common/io/Stream.hpp" namespace cru::io { -void Stream::Rewind() { Seek(0); } +Index Stream::Tell() { return Seek(0, SeekOrigin::Current); } + +void Stream::Rewind() { Seek(0, SeekOrigin::Begin); } Index Stream::GetSize() { Index current_position = Tell(); |