/**
Constructor; creates a new empty stream buffer which won't flush any data
to a stream. mode specifies the type of the buffer (read, write, read_write).
/**
Constructor; creates a new empty stream buffer which won't flush any data
to a stream. mode specifies the type of the buffer (read, write, read_write).
This stream buffer has the advantage to be stream independent and to work
only on memory buffers but it is still compatible with the rest of the
wxStream classes. You can write, read to this special stream and it will
This stream buffer has the advantage to be stream independent and to work
only on memory buffers but it is still compatible with the rest of the
wxStream classes. You can write, read to this special stream and it will
stream buffer. The new stream buffer has the same attributes, size, position
and they share the same buffer. This will cause problems if the stream to
which the stream buffer belong is destroyed and the newly cloned stream
stream buffer. The new stream buffer has the same attributes, size, position
and they share the same buffer. This will cause problems if the stream to
which the stream buffer belong is destroyed and the newly cloned stream
different of the specified size, an error has occurred and
should be tested using GetLastError().
*/
different of the specified size, an error has occurred and
should be tested using GetLastError().
*/
measured in bytes from the beginning of the stream.
Otherwise, it returns wxInvalidOffset.
*/
measured in bytes from the beginning of the stream.
Otherwise, it returns wxInvalidOffset.
*/
@return Returns the current position in the stream if possible,
wxInvalidOffset in the other case.
*/
@return Returns the current position in the stream if possible,
wxInvalidOffset in the other case.
*/
Writes a block of the specified size using data of buffer.
The data are cached in a buffer before being sent in one block to the stream.
*/
Writes a block of the specified size using data of buffer.
The data are cached in a buffer before being sent in one block to the stream.
*/
as a file, then the underlying resource is closed too if it is owned
by this stream, or left open otherwise.
*/
as a file, then the underlying resource is closed too if it is owned
by this stream, or left open otherwise.
*/
/**
Returns the number of bytes written during the last Write().
It may return 0 even if there is no error on the stream if it is
only temporarily impossible to write to it.
*/
/**
Returns the number of bytes written during the last Write().
It may return 0 even if there is no error on the stream if it is
only temporarily impossible to write to it.
*/
/**
Returns @true if some data is available in the stream right now, so that
calling Read() wouldn't block.
*/
/**
Returns @true if some data is available in the stream right now, so that
calling Read() wouldn't block.
*/