C# Class NodeNetAsync.Utils.ProducerConsumerStream

Inheritance: Stream
Exibir arquivo Open project: soywiz/NodeNetAsync

Public Methods

Method Description
Flush ( ) : void
ProducerConsumerStream ( IProducerConsumer ProducerConsumer ) : System
Read ( byte buffer, int offset, int count ) : int
ReadAsync ( byte buffer, int offset, int count, System cancellationToken ) : Task
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void

Method Details

Flush() public method

public Flush ( ) : void
return void

ProducerConsumerStream() public method

public ProducerConsumerStream ( IProducerConsumer ProducerConsumer ) : System
ProducerConsumer IProducerConsumer
return System

Read() public method

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

ReadAsync() public method

public ReadAsync ( byte buffer, int offset, int count, System cancellationToken ) : Task
buffer byte
offset int
count int
cancellationToken System
return Task

Seek() public method

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long

SetLength() public method

public SetLength ( long value ) : void
value long
return void

Write() public method

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