Add Pos() to PushBackByteSink.

This commit is contained in:
Yury Melnichek 2011-05-16 23:53:17 +02:00 committed by Alex Zolotarev
parent 7826bf6ca5
commit e399f99981

View file

@ -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