Revenj.ChunkedMemoryStream.ReadByte C# (CSharp) Method

ReadByte() public method

Read a single byte
public ReadByte ( ) : int
return int
        public override int ReadByte()
        {
            var block = Blocks[CurrentPosition >> BlockShift];
            if (CurrentPosition < TotalSize)
                return block[CurrentPosition++ & BlockAnd];
            else
                return -1;
        }