* 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:
Guilhem Lavaux
1998-07-28 17:11:08 +00:00
parent 00c75bb689
commit 32a4b1d57c
2 changed files with 9 additions and 0 deletions

View File

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