From d15172cfe1ac8558567c1b1c10c2e671b0d1f033 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 3 Feb 2022 14:55:17 +0800 Subject: ... --- src/common/io/Stream.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/common/io/Stream.cpp') 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(); -- cgit v1.2.3