UtilitiesReadEntireStream Method (Stream, Byte) |
Fills an array completely using the provided stream. Unlike a normal .Read(), this one will always fully fill the array unless the Stream throws.
Namespace: FiddlerAssembly: FiddlerCore4 (in FiddlerCore4.dll) Version: 4.6.2.0
Syntax public static int ReadEntireStream(
Stream oStream,
byte[] arrBytes
)
Public Shared Function ReadEntireStream (
oStream As Stream,
arrBytes As Byte()
) As Integer
public:
static int ReadEntireStream(
Stream^ oStream,
array<unsigned char>^ arrBytes
)
Parameters
- oStream
- Type: System.IOStream
The stream from which to read. - arrBytes
- Type: SystemByte
The byte array into which the data should be stored.
Return Value
Type:
Int32The count of bytes read.
See Also