the number of bytes read into @stream's buffer, up to @count, or -1 on error.
GException on failure.
See Implementation