Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: byte[] ReadBytes(int)

Declaration

public byte[] ReadBytes(
    int count
)

Summary

Reads the specified number of bytes from the stream.

Parameters

intcountNumber of bytes to read from the stream.

Returns

A byte array containing exactly the number of bytes requested.

Exceptions

  • System.IO.EndOfStreamException
    The end of the stream was reached before the requested number of bytes could be read.