This class is the base class of most stream related classes in wxWidgets. It must not be used directly.
Creates a dummy stream object. It doesn't do anything.
wxStreamError IsOk() const
Returns true if no error occurred on the stream.
wxStreamError GetLastError() const
This function returns the last error.
|wxSTREAM_NO_ERROR||No error occurred.|
|wxSTREAM_EOF||An End-Of-File occurred.|
|wxSTREAM_WRITE_ERROR||A generic error occurred on the last write call.|
|wxSTREAM_READ_ERROR||A generic error occurred on the last read call.|
size_t OnSysRead(void* buffer, size_t bufsize)
Internal function. It is called when the stream wants to read data of the specified size. It should return the size that was actually read.
off_t OnSysSeek(off_t pos, wxSeekMode mode)
Internal function. It is called when the stream needs to change the current position.
off_t OnSysTell() const
Internal function. Is is called when the stream needs to know the real position.
size_t OnSysWrite(void *buffer, size_t bufsize)
size_t GetSize() const
This function returns the size of the stream. For example, for a file it is the size of the file.
There are streams which do not have size by definition, such as socket streams. In that cases, GetSize returns 0 so you should always test its return value.