C# Class GooglePlayServices.CommandLine.AsyncStreamReader

Asynchronously reads binary data from a stream using a configurable buffer.
显示文件 Open project: googlesamples/unity-jar-resolver Class Usage Examples

Public Methods

Method 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

Method Description
Read ( ) : void

Read from the stream until the end is reached.

Method Details

AsyncStreamReader() public method

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.
return System.Collections.Generic

CreateFromStreams() public static method

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.
return System.Diagnostics.AsyncStreamReader[]

Start() public method

Start reading.
public Start ( ) : void
return void