/// <summary> /// Attempts to read a single byte from the stream. /// </summary> /// <returns>The byte that was read, or -1 in case of error or End-Of-File</returns> public override int ReadByte() { if (!CanRead) { throw new NotSupportedException(); } if (_isDisposed) { throw new ObjectDisposedException("GZipStream"); } return(ZLibNative.gzgetc(_gzFile)); }