Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 398 Bytes

File metadata and controls

20 lines (13 loc) · 398 Bytes

Shuttle.Core.Streams

PM> Install-Package Shuttle.Core.Streams

Provides Stream extensions.

Task<byte[]> ToBytesAsync(this Stream stream)

Returns the given Stream as a byte array.

Task<Stream> CopyAsync(this Stream stream)

Creates a copy of the given Stream. THe copy will be at position 0 and the source Stream will remain at its original position.