Declaration
public static byte[] Read(
this Stream stream,
int length
)
Summary
Attempts to read the specified number of bytes from the stream. If there are fewer bytes left before the end
of the stream, a shorter (possibly empty) array is returned.
Parameters
this Stream | stream |
Stream to read from. |
int | length |
Number of bytes to read from the stream. |