Read Method
Read(byte[])
Reads into byte array bytes
as much as possible to fill the provided array.
Declaration
int Read(byte[] bytes)
Parameters
byte[] | bytes | byte array to be filled |
Returns
int | whether the number of bytes read, or -1 if end of internal serialized buffer is reached. |
Read(byte[], int, int)
Reads into byte array bytes
starting from the offset value. As much as count bytes will be written if there is available content.
Declaration
int Read(byte[] bytes, int offset, int count)
Parameters
byte[] | bytes | byte array to be filled |
int | offset | fill starting offset of the provided array |
int | count | the requested number of bytes to be filled. |
Returns
int | whether the number of bytes read, or -1 if end of internal serialized buffer is reached. |