aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/stream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zencore/stream.cpp')
-rw-r--r--src/zencore/stream.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/zencore/stream.cpp b/src/zencore/stream.cpp
index 3402e51be..ee97a53c4 100644
--- a/src/zencore/stream.cpp
+++ b/src/zencore/stream.cpp
@@ -51,6 +51,27 @@ BinaryWriter::Reset()
}
//////////////////////////////////////////////////////////////////////////
+
+void
+BufferReader::Seek(uint64_t InPos)
+{
+ // Validate range
+ m_Offset = InPos;
+}
+
+int64_t
+BufferReader::Tell()
+{
+ return CurrentOffset();
+}
+
+void
+BufferReader::Serialize(void* V, int64_t Length)
+{
+ Read(V, Length);
+}
+
+//////////////////////////////////////////////////////////////////////////
//
// Testing related code follows...
//