ICSharpCode.SharpZipLib.Zip.ZipFile.PartialInputStream.ReadByte C# (CSharp) Method

ReadByte() public method

Read a byte from this stream.
public ReadByte ( ) : int
return int
            public override int ReadByte() {
                if (readPos_>=end_) {
                    // -1 is the correct value at end of stream.
                    return -1;
                }

                lock (baseStream_) {
                    baseStream_.Seek(readPos_++, SeekOrigin.Begin);
                    return baseStream_.ReadByte();
                }
            }