Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: byte[] Read(this Stream, int)

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 Streamstream Stream to read from.
intlength Number of bytes to read from the stream.