Reads data from a specified stream buffer.
eOk if the data was successfully read; otherwise, the method returns an appropriate error.