PacketReadByte() private method

private PacketReadByte ( long offset ) : int
offset long
return int
Esempio n. 1
0
        public override int ReadNextByte()
        {
            if (_curOfs == _length)
            {
                if (_mergedPacket == null)
                {
                    return(-1);
                }
                return(_mergedPacket.ReadNextByte());
            }
            int num = _containerReader.PacketReadByte(_offset + _curOfs);

            if (num != -1)
            {
                _curOfs++;
            }
            return(num);
        }
Esempio n. 2
0
        protected override int ReadNextByte()
        {
            if (_curOfs == _length)
            {
                if (_mergedPacket == null)
                {
                    return(-1);
                }

                return(_mergedPacket.ReadNextByte());
            }

            var b = _containerReader.PacketReadByte(_offset + _curOfs);

            if (b != -1)
            {
                ++_curOfs;
            }
            return(b);
        }