Summer.Batch.Common.Extensions.StreamExtension Class Reference

Extension class for System.IO.Stream. More...

Static Public Member Functions

static int Read (this Stream stream, byte[] data)
 Reads a stream into a byte array with default values (0, byte array length). More...
 
static void Write (this Stream stream, byte[] data)
 Writes a byte array into a stream using default values (0, byte array length). More...
 

Detailed Description

Extension class for System.IO.Stream.

Member Function Documentation

static int Summer.Batch.Common.Extensions.StreamExtension.Read ( this Stream  stream,
byte[]  data 
)
static

Reads a stream into a byte array with default values (0, byte array length).

Parameters
streamThe stream to read the bytes from.
dataThe array into which the bytes are copied.
Returns
static void Summer.Batch.Common.Extensions.StreamExtension.Write ( this Stream  stream,
byte[]  data 
)
static

Writes a byte array into a stream using default values (0, byte array length).

Parameters
streamThe stream to write to.
dataThe array containing the bytes to write.

The documentation for this class was generated from the following file:
  • Summer.Batch.Common/Extensions/StreamExtension.cs