* 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:
@@ -32,6 +32,8 @@ class wxMemoryInputStream: virtual public wxMemoryStreamBase, public wxInputStre
|
||||
wxMemoryInputStream(const char *data, size_t length);
|
||||
virtual ~wxMemoryInputStream();
|
||||
|
||||
char Peek();
|
||||
|
||||
protected:
|
||||
|
||||
size_t DoRead(void *buffer, size_t size);
|
||||
|
@@ -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