[]
Reads the specified number of bytes from the current stream into a byte array and advances the current position by that number of bytes.
public byte[] ReadBytes(int count)
Public Function ReadBytes(count As Integer) As Byte()
Type | Name | Description |
---|---|---|
int | count | The number of bytes to read. This value must be 0 or a non-negative number or an exception will occur. |
Type | Description |
---|---|
byte[] | A byte array containing data read from the underlying stream. This might be less than the number of bytes requested if the end of the stream is reached. |