]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mstream.h
1. warnings suppressed in wave.cpp
[wxWidgets.git] / include / wx / mstream.h
CommitLineData
32fc4afb
GL
1/////////////////////////////////////////////////////////////////////////////
2// Name: mstream.h
3// Purpose: Memory stream classes
4// Author: Guilhem Lavaux
5// Modified by:
6// Created: 11/07/98
7// RCS-ID: $Id$
8// Copyright: (c) Guilhem Lavaux
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
34138703
JS
11#ifndef _WX_WXMMSTREAM_H__
12#define _WX_WXMMSTREAM_H__
32fc4afb 13
79c3e0e1 14#include <wx/stream.h>
32fc4afb 15
75ed1d15 16class wxMemoryInputStream: public wxInputStream {
18c07b73
VS
17 private:
18 size_t m_length;
19
32fc4afb 20 public:
79c3e0e1
GL
21 wxMemoryInputStream(const char *data, size_t length);
22 virtual ~wxMemoryInputStream();
18c07b73 23 virtual size_t StreamSize() const { return m_length; }
79c3e0e1 24
32a4b1d5 25 char Peek();
32fc4afb
GL
26};
27
75ed1d15 28class wxMemoryOutputStream: public wxOutputStream {
32fc4afb 29 public:
79c3e0e1
GL
30 wxMemoryOutputStream(char *data = NULL, size_t length = 0);
31 virtual ~wxMemoryOutputStream();
32fc4afb
GL
32};
33
32fc4afb 34#endif