implemented wxMemoryInputStream::CanRead() and added tests for CanRead() to all stream tests
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -97,6 +97,11 @@ wxMemoryInputStream::InitFromStream(wxInputStream& stream, wxFileOffset lenFile)
|
||||
m_length = stream.LastRead();
|
||||
}
|
||||
|
||||
bool wxMemoryInputStream::CanRead() const
|
||||
{
|
||||
return m_i_streambuf->GetIntPosition() != m_length;
|
||||
}
|
||||
|
||||
wxMemoryInputStream::~wxMemoryInputStream()
|
||||
{
|
||||
delete m_i_streambuf;
|
||||
|
||||
Reference in New Issue
Block a user