BogaNet 1.4.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Pages
Static Public Member Functions | List of all members
BogaNet.Extension.StreamExtension Class Reference

Extension methods for Stream. More...

Static Public Member Functions

static byte[] BNReadFully (this Stream input)
 Reads the full content of a Stream.
 
static async Task< byte[]> BNReadFullyAsync (this Stream input)
 Reads the full content of a Stream asynchronously.
 

Detailed Description

Extension methods for Stream.

Member Function Documentation

◆ BNReadFully()

static byte[] BogaNet.Extension.StreamExtension.BNReadFully ( this Stream input)
static

Reads the full content of a Stream.

Parameters
inputStream-instance to read
Returns
Byte-array of the Stream content
Exceptions
ArgumentNullException

◆ BNReadFullyAsync()

static async Task< byte[]> BogaNet.Extension.StreamExtension.BNReadFullyAsync ( this Stream input)
static

Reads the full content of a Stream asynchronously.

Parameters
inputStream-instance to read
Returns
Byte-array of the Stream content
Exceptions
ArgumentNullException

The documentation for this class was generated from the following file: