Reads all data from the current position to the end of this stream.
public byte[] readToEnd()
Returns a byte array containing the data that was read.
This method implements the IDataStream.readToEnd method.