Version: 2.9.4
Public Member Functions
wxBufferedInputStream Class Reference

#include </home/zeitlin/src/wx/github/interface/wx/stream.h>

Inheritance diagram for wxBufferedInputStream:

Detailed Description

This stream acts as a cache.

It caches the bytes read from the specified input stream (see wxFilterInputStream). It uses wxStreamBuffer and sets the default in-buffer size to 1024 bytes. This class may not be used without some other stream to read the data from (such as a file stream or a memory stream).

Library:  wxBase
Category:  Streams
参照:
wxStreamBuffer, wxInputStream, wxBufferedOutputStream

Public Member Functions

 wxBufferedInputStream (wxInputStream &stream, wxStreamBuffer *buffer=NULL)
 Constructor using the provided buffer or default.
 wxBufferedInputStream (wxInputStream &stream, size_t bufsize)
 Constructor allowing to specify the size of the buffer.
virtual ~wxBufferedInputStream ()
 Destructor.

List of all members.


Constructor & Destructor Documentation

wxBufferedInputStream::wxBufferedInputStream ( wxInputStream stream,
wxStreamBuffer buffer = NULL 
)

Constructor using the provided buffer or default.

Parameters:
streamThe associated low-level stream.
bufferThe buffer to use if non-NULL. Notice that the ownership of this buffer is taken by the stream, i.e. it will delete it. If this parameter is NULL a default 1KB buffer is used.
wxBufferedInputStream::wxBufferedInputStream ( wxInputStream stream,
size_t  bufsize 
)

Constructor allowing to specify the size of the buffer.

This is just a more convenient alternative to creating a wxStreamBuffer of the given size and using the other overloaded constructor of this class.

Parameters:
streamThe associated low-level stream.
bufsizeThe size of the buffer, in bytes.
Since:
2.9.0
virtual wxBufferedInputStream::~wxBufferedInputStream ( ) [virtual]

Destructor.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines