From e399f999818d75ce17a5837d6a86ca4a13d75e5f Mon Sep 17 00:00:00 2001 From: Yury Melnichek Date: Mon, 16 May 2011 23:53:17 +0200 Subject: [PATCH] Add Pos() to PushBackByteSink. --- coding/byte_stream.hpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/coding/byte_stream.hpp b/coding/byte_stream.hpp index cd3ab76af4..9ce9f747f0 100644 --- a/coding/byte_stream.hpp +++ b/coding/byte_stream.hpp @@ -49,13 +49,12 @@ public: m_Storage.insert(m_Storage.end(), pp, pp + size); } - //size_t BytesWritten() const - //{ - // return m_Storage.size() - m_InitialStorageSize; - //} + size_t Pos() const + { + return m_Storage.size(); + } private: TStorage & m_Storage; - //size_t m_InitialStorageSize; }; class CountingSink