Was this page helpful?

Read Extension Method

    Read(this Stream stream, Byte[] buffer, int offset, int count, Result<int> result)

    public static Result<int> Read(this Stream stream, Byte[] buffer, int offset, int count, Result<int> result);
    Asynchronously read from a System.IO.Stream

    Parameters

    Name Type Description
    stream Stream Source System.IO.Stream
    buffer Byte[] Byte array to fill from the source
    offset int Position in buffer to start writing to
    count int Number of bytes to read from the System.IO.Stream
    result Result<int> The MindTouch.Tasking.Result instance to be returned by the call.

    Returns

    Type: Result<int>
    Synchronization handle for the number of bytes read.
    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by