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
Int32 | whether the number of bytes read, or -1 if end of internal serialized buffer is reached. |
Read(Byte[], Int32, Int32)
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 |
Int32 | offset | fill starting offset of the provided array |
Int32 | count | the requested number of bytes to be filled. |
Returns
Int32 | whether the number of bytes read, or -1 if end of internal serialized buffer is reached. |