Exemple #1
0
        internal bool HandleFragment(QNetworkReader reader)
        {
            bool result;

            if (reader.ReadByte() == 0)
            {
                if (!_readingFragment)
                {
                    _fragmentBuffer.SeekZero();
                    _readingFragment = true;
                }
                var array = reader.ReadBytesAndSize();
                _fragmentBuffer.WriteBytes(array, (ushort)array.Length);
                result = false;
            }
            else
            {
                _readingFragment = false;
                result           = true;
            }
            return(result);
        }
 public void SeekZero() => m_buf.SeekZero();