C# Class SFML.Window.StreamAdaptor

Adapts a System.IO.Stream to be usable as a SFML InputStream
Inheritance: IDisposable
ファイルを表示 Open project: SFML/SFML.Net Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Explicitly dispose the object

StreamAdaptor ( Stream stream ) : System

Construct from a System.IO.Stream

Private Methods

Method Description
Dispose ( bool disposing ) : void

Destroy the object

GetSize ( IntPtr userData ) : long

Called to get the total size of the stream

Read ( IntPtr data, long size, IntPtr userData ) : long

Called to read from the stream

Seek ( long position, IntPtr userData ) : long

Called to set the read position in the stream

Tell ( IntPtr userData ) : long

Get the current read position in the stream

Method Details

Dispose() public method

Explicitly dispose the object
public Dispose ( ) : void
return void

StreamAdaptor() public method

Construct from a System.IO.Stream
public StreamAdaptor ( Stream stream ) : System
stream Stream Stream to adapt
return System