aboutsummaryrefslogtreecommitdiffstats
path: root/src/utility/inputStreamByteBufferAdapter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utility/inputStreamByteBufferAdapter.cpp')
-rw-r--r--src/utility/inputStreamByteBufferAdapter.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/utility/inputStreamByteBufferAdapter.cpp b/src/utility/inputStreamByteBufferAdapter.cpp
index 92e779fe..907f1eec 100644
--- a/src/utility/inputStreamByteBufferAdapter.cpp
+++ b/src/utility/inputStreamByteBufferAdapter.cpp
@@ -85,6 +85,19 @@ stream::size_type inputStreamByteBufferAdapter::skip(const size_type count)
}
+stream::size_type inputStreamByteBufferAdapter::getPosition() const
+{
+ return m_pos;
+}
+
+
+void inputStreamByteBufferAdapter::seek(const size_type pos)
+{
+ if (pos <= m_length)
+ m_pos = pos;
+}
+
+
} // utility
} // vmime