 | readAllReadAll Method |
Get all bytes left in a
Stream.
Namespace:
WhetStone.Streams
Assembly:
WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntaxpublic static byte[] ReadAll(
this Stream this,
int initialchunksize = 256
)
Parameters
- this
- Type: System.IOStream
The Stream to read. - initialchunksize (Optional)
- Type: SystemInt32
The initial buffer size, it will grow exponentially as the stream continues.
Return Value
Type:
ByteAn
Array of all the bytes in
this.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Stream. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions
See Also