Class StreamExtensions
Extensions on System.IO.Stream.
Inheritance
System.Object
StreamExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TimeCockpit.Data
Assembly: TimeCockpit.Data.dll
Syntax
public static class StreamExtensions
Methods
ReadAllBytesAsync(Stream)
Asynchronously reads all the bytes from the stream.
Declaration
public static Task<byte[]> ReadAllBytesAsync(this Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | The stream to read from. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Byte[]> | Returns the byte array holding all data. |