C# Class Squared.Task.IO.StreamDataAdapter

Inheritance: IAsyncDataSource, IAsyncDataWriter
Show file Open project: sq/Fracture Class Usage Examples

Protected Properties

Property Type Description
_Stream Stream

Public Methods

Method Description
Dispose ( ) : void
Flush ( ) : SignalFuture
Read ( byte buffer, int offset, int count ) : Future
StreamDataAdapter ( Stream stream, bool ownsStream = true ) : System
Write ( byte buffer, int offset, int count ) : SignalFuture

Private Methods

Method Description
ReadCallback ( IAsyncResult ar ) : void
WriteCallback ( IAsyncResult ar ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Flush() public method

public Flush ( ) : SignalFuture
return SignalFuture

Read() public method

public Read ( byte buffer, int offset, int count ) : Future
buffer byte
offset int
count int
return Future

StreamDataAdapter() public method

public StreamDataAdapter ( Stream stream, bool ownsStream = true ) : System
stream Stream
ownsStream bool
return System

Write() public method

public Write ( byte buffer, int offset, int count ) : SignalFuture
buffer byte
offset int
count int
return SignalFuture

Property Details

_Stream protected property

protected Stream _Stream
return Stream