* Added Peek() to wxMemoryInputStream.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@390 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -75,6 +75,13 @@ wxMemoryInputStream::~wxMemoryInputStream()
|
||||
{
|
||||
}
|
||||
|
||||
char wxMemoryInputStream::Peek()
|
||||
{
|
||||
// wxStreamBuffer is disabled so just peek the current character.
|
||||
|
||||
return m_buffer[m_position_i];
|
||||
}
|
||||
|
||||
size_t wxMemoryInputStream::DoRead(void *buffer, size_t size)
|
||||
{
|
||||
if (m_iolimit == 2) {
|
||||
|
Reference in New Issue
Block a user