This class is the base class of most stream related classes in wxWidgets.
It must not be used directly.
Class Hierarchy¶Inheritance diagram for class
StreamBase:
Known Subclasses¶wx.InputStream, wx.OutputStream
Methods Summary¶Creates a dummy stream object.
This function returns the last error.
Returns the length of the stream in bytes.
This function returns the size of the stream.
Returns True
if no error occurred on the stream.
Returns True
if the stream supports seeking to arbitrary offsets.
Resets the stream state.
Properties Summary¶ Class API¶Possible constructors:
This class is the base class of most stream related classes in wxWidgets.
Creates a dummy stream object.
It doesnât do anything.
None
This function returns the last error.
Returns the length of the stream in bytes.
If the length cannot be determined (this is always the case for socket streams for example), returns InvalidOffset
.
wx.FileOffset
Added in version 2.5.4.
This function returns the size of the stream.
For example, for a file it is the size of the file.
int
Warning
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.
Returns True
if no error occurred on the stream.
bool
Returns True
if the stream supports seeking to arbitrary offsets.
bool
Resets the stream state.
By default, resets the stream to good state, i.e. clears any errors. Since wxWidgets 2.9.3 can be also used to explicitly set the state to the specified error (the error argument didnât exist in the previous versions).
error (StreamError)
None
See GetLastError
See GetLength
See GetSize
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4