C# Class GooglePlayServices.CommandLine.AsyncStreamReader

Asynchronously reads binary data from a stream using a configurable buffer.
Afficher le fichier Open project: googlesamples/unity-jar-resolver Class Usage Examples

Méthodes publiques

Méthode Description
AsyncStreamReader ( int handle, Stream stream, int bufferSize ) : System.Collections.Generic

Initialize the reader.

CreateFromStreams ( Stream streams, int bufferSize ) : System.Diagnostics.AsyncStreamReader[]

Create a set of readers to read the specified streams, handles are assigned based upon the index of each stream in the provided array.

Start ( ) : void

Start reading.

Private Methods

Méthode Description
Read ( ) : void

Read from the stream until the end is reached.

Method Details

AsyncStreamReader() public méthode

Initialize the reader.
public AsyncStreamReader ( int handle, Stream stream, int bufferSize ) : System.Collections.Generic
handle int
stream Stream Stream to read.
bufferSize int Size of the buffer to read.
Résultat System.Collections.Generic

CreateFromStreams() public static méthode

Create a set of readers to read the specified streams, handles are assigned based upon the index of each stream in the provided array.
public static CreateFromStreams ( Stream streams, int bufferSize ) : System.Diagnostics.AsyncStreamReader[]
streams Stream Streams to read.
bufferSize int Size of the buffer to use to read each stream.
Résultat System.Diagnostics.AsyncStreamReader[]

Start() public méthode

Start reading.
public Start ( ) : void
Résultat void