An open API service indexing awesome lists of open source software.

https://github.com/shuttle/shuttle.core.streams

Stream infrastructure utilities.
https://github.com/shuttle/shuttle.core.streams

Last synced: about 1 month ago
JSON representation

Stream infrastructure utilities.

Awesome Lists containing this project

README

        

# Shuttle.Core.Streams

```
PM> Install-Package Shuttle.Core.Streams
```

Provides `Stream` extensions.

``` c#
Task ToBytesAsync(this Stream stream)
```

Returns the given `Stream` as a `byte` array.

``` c#
Task 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.