Table of Contents

Class StreamExtensions

Namespace
TimeCockpit.Data
Assembly
TimeCockpit.Data.dll

Extensions on System.IO.Stream.

public static class StreamExtensions
Inheritance
Object
StreamExtensions
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()

Methods

ReadAllBytesAsync(Stream)

Asynchronously reads all the bytes from the stream.

public static Task<byte[]> ReadAllBytesAsync(this Stream stream)

Parameters

stream Stream

The stream to read from.

Returns

Task<Byte[]>

Returns the byte array holding all data.