-// ----------------------------------------------------------------------------
-// wxMemoryStreamBase
-// ----------------------------------------------------------------------------
-wxMemoryStreamBase::wxMemoryStreamBase()
-{
- m_buffer = NULL;
- m_iolimit = 0;
- m_persistent = FALSE;
- m_length = 0;
-}
-
-wxMemoryStreamBase::~wxMemoryStreamBase()
-{
- if (!m_persistent && m_buffer)
- free(m_buffer);
-}
-
-bool wxMemoryStreamBase::ChangeBufferSize(size_t new_size)
-{
- if (m_iolimit == 1)
- return FALSE;
-
- m_length = new_size;
- if (!m_buffer)
- m_buffer = (char *)malloc(m_length);
- else
- m_buffer = (char *)realloc(m_buffer, m_length);