Implementations of Delegates | |
long | GetLength () |
Public Member Functions | |
override void | Dispose () |
int | Read (byte[] buffer, int offset, int count) |
long | Seek (long offset, SeekOrigin origin) |
wxInputStreamWrapper (IntPtr wxObject) | |
wxInputStreamWrapper (Stream src) | |
Properties | |
bool | CanRead [get] |
bool | CanSeek [get] |
long | Length [get] |
long | Position [get, set] |
Stream | Src [get] |
However, instances of this class may occur in another state: Without a framework stream as source. In that case, the instance simply wrapps a fully functional wxWidgets input stream without setting callbacks.
wx.FileSys.wxInputStreamWrapper.wxInputStreamWrapper | ( | Stream | src | ) |
Generates a new wxWidgets wxInputStream
instance whose basic functions refer to methods of src
.
wx.FileSys.wxInputStreamWrapper.wxInputStreamWrapper | ( | IntPtr | wxObject | ) |
Generates an instance wrapping a fully functional wxWidgets wxInputStream
.
override void wx.FileSys.wxInputStreamWrapper.Dispose | ( | ) | [virtual] |
Reimplemented from wx.Object.
long wx.FileSys.wxInputStreamWrapper.GetLength | ( | ) |
In contrast to property Length this does not throw exceptions but returns -1.
int wx.FileSys.wxInputStreamWrapper.Read | ( | byte[] | buffer, | |
int | offset, | |||
int | count | |||
) |
long wx.FileSys.wxInputStreamWrapper.Seek | ( | long | offset, | |
SeekOrigin | origin | |||
) |
This is not supported.
bool wx.FileSys.wxInputStreamWrapper.CanRead [get] |
bool wx.FileSys.wxInputStreamWrapper.CanSeek [get] |
This returns whether a seek operation failed in the past or the wrapped stream does not provide a current position.
long wx.FileSys.wxInputStreamWrapper.Length [get] |
This is not supported.
long wx.FileSys.wxInputStreamWrapper.Position [get, set] |
This will throw an NotSupportedException
iff the wrapped wxInputStream
does not support the analogous operation.
Stream wx.FileSys.wxInputStreamWrapper.Src [get] |
This is the C# stream that is used as data source. Depending of the mode of this implementation this may either be a standard System.IO.Stream providing data for an internal wxInputStream
or an instance of class wxInputStream wrapping a wxWidgets input stream.