X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6d44bf31a6f0b4a261280e57842bbd53b5e26cd5..6f34921d9369a31de14e4b07e4824e2d701710f0:/src/common/mstream.cpp diff --git a/src/common/mstream.cpp b/src/common/mstream.cpp index 9e1ee174f2..7f72e82db4 100644 --- a/src/common/mstream.cpp +++ b/src/common/mstream.cpp @@ -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) {