C# Class Helios.Net.Transports.TransportBase

Inheritance: ITransport
Mostra file Open project: helios-io/helios

Public Methods

Method Description
Flush ( ) : void
FlushAsync ( ) : Task
FlushAsync ( CancellationToken token ) : Task
Peek ( ) : bool
Read ( byte buffer, int offset, int length ) : int
ReadAll ( byte buffer, int offset, int length ) : int
ReadAllAsync ( byte buffer, int offset, int length ) : Task
ReadAllAsync ( byte buffer, int offset, int length, CancellationToken token ) : Task
ReadAsync ( byte buffer, int offset, int length ) : Task
ReadAsync ( byte buffer, int offset, int length, CancellationToken token ) : Task
Write ( byte buffer ) : void
Write ( byte buffer, int offset, int length ) : void
WriteAsync ( byte buffer ) : Task
WriteAsync ( byte buffer, CancellationToken token ) : Task
WriteAsync ( byte buffer, int offset, int length ) : Task
WriteAsync ( byte buffer, int offset, int length, CancellationToken token ) : Task

Method Details

Flush() public method

public Flush ( ) : void
return void

FlushAsync() public abstract method

public abstract FlushAsync ( ) : Task
return Task

FlushAsync() public abstract method

public abstract FlushAsync ( CancellationToken token ) : Task
token System.Threading.CancellationToken
return Task

Peek() public abstract method

public abstract Peek ( ) : bool
return bool

Read() public abstract method

public abstract Read ( byte buffer, int offset, int length ) : int
buffer byte
offset int
length int
return int

ReadAll() public method

public ReadAll ( byte buffer, int offset, int length ) : int
buffer byte
offset int
length int
return int

ReadAllAsync() public method

public ReadAllAsync ( byte buffer, int offset, int length ) : Task
buffer byte
offset int
length int
return Task

ReadAllAsync() public method

public ReadAllAsync ( byte buffer, int offset, int length, CancellationToken token ) : Task
buffer byte
offset int
length int
token System.Threading.CancellationToken
return Task

ReadAsync() public abstract method

public abstract ReadAsync ( byte buffer, int offset, int length ) : Task
buffer byte
offset int
length int
return Task

ReadAsync() public abstract method

public abstract ReadAsync ( byte buffer, int offset, int length, CancellationToken token ) : Task
buffer byte
offset int
length int
token System.Threading.CancellationToken
return Task

Write() public method

public Write ( byte buffer ) : void
buffer byte
return void

Write() public abstract method

public abstract Write ( byte buffer, int offset, int length ) : void
buffer byte
offset int
length int
return void

WriteAsync() public abstract method

public abstract WriteAsync ( byte buffer ) : Task
buffer byte
return Task

WriteAsync() public abstract method

public abstract WriteAsync ( byte buffer, CancellationToken token ) : Task
buffer byte
token System.Threading.CancellationToken
return Task

WriteAsync() public abstract method

public abstract WriteAsync ( byte buffer, int offset, int length ) : Task
buffer byte
offset int
length int
return Task

WriteAsync() public abstract method

public abstract WriteAsync ( byte buffer, int offset, int length, CancellationToken token ) : Task
buffer byte
offset int
length int
token System.Threading.CancellationToken
return Task