C# Class com.openrest.v1_1.StreamUtils

显示文件 Open project: wix/openrest4net

Public Methods

Method Description
ReadFully ( Stream stream, int initialLength ) : byte[]

Reads data from a stream until the end is reached. The data is returned as a byte array. An IOException is thrown if any of the underlying IO calls fail.

Private Methods

Method Description
StreamUtils ( ) : System

Method Details

ReadFully() public static method

Reads data from a stream until the end is reached. The data is returned as a byte array. An IOException is thrown if any of the underlying IO calls fail.
public static ReadFully ( Stream stream, int initialLength ) : byte[]
stream Stream The stream to read data from
initialLength int The initial buffer length
return byte[]