Method ReadBytes
ReadBytes(Buffer, int)
Reads a series of bytes from the buffer.
Declaration
public static byte[] ReadBytes(this Buffer buffer, int amount)
Parameters
Type | Name | Description |
---|---|---|
Buffer | buffer | |
int | amount | Number of bytes to be read from the buffer. |
Returns
Type | Description |
---|---|
byte[] | The array of bytes that has been read from the buffer. |
ReadBytes(Buffer, byte[], int, int)
Reads a series of bytes from the buffer.
Declaration
public static void ReadBytes(this Buffer buffer, byte[] rhs, int offset, int amount)
Parameters
Type | Name | Description |
---|---|---|
Buffer | buffer | |
byte[] | rhs | Destination array that the bytes should be written to. |
int | offset | Offset into the destination array where the bytes should be written to. |
int | amount | Number of bytes to be read from the buffer. |