Esempio n. 1
0
        void IterateInlineList(AbstractBufferedReader reader, IFieldHandler itemHandler, bool skipping)
        {
            var skip  = skipping || _visitor != null && !_visitor.StartList();
            var count = reader.ReadVUInt32();

            while (count-- > 0)
            {
                var skipItem = skip || _visitor != null && !_visitor.StartItem();
                IterateHandler(reader, itemHandler, skipItem, null);
                if (!skipItem)
                {
                    _visitor?.EndItem();
                }
            }
            if (!skip)
            {
                _visitor?.EndList();
            }
        }