C# Class Lawo.IO.StreamHelper

Provides common stream algorithms.
Datei anzeigen Open project: Lawo/ember-plus-sharp

Public Methods

Method Description
Fill ( ReadCallback read, byte buffer, int offset, int count ) : void

Repeatedly calls read until count bytes have been read into buffer.

TryFill ( ReadCallback read, byte buffer, int offset, int count ) : int

Repeatedly calls read until count bytes have been read into buffer or the end of the stream has been reached.

Private Methods

Method Description
FillAsync ( ReadAsyncCallback read, byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
TryFillAsync ( ReadAsyncCallback read, byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task

Method Details

Fill() public static method

Repeatedly calls read until count bytes have been read into buffer.
equals null. The end of the stream has been reached before /// could be filled to bytes. has thrown an exception.
public static Fill ( ReadCallback read, byte buffer, int offset, int count ) : void
read ReadCallback
buffer byte
offset int
count int
return void

TryFill() public static method

Repeatedly calls read until count bytes have been read into buffer or the end of the stream has been reached.
equals null. has thrown an exception.
public static TryFill ( ReadCallback read, byte buffer, int offset, int count ) : int
read ReadCallback
buffer byte
offset int
count int
return int