Beispiel #1
0
        protected override bool OnInitialize()
        {
            VoidPtr addr = WorkingUncompressed.Address;
            object  n    = null;

            while ((n = MDL0NodeClass.Create(ref addr)) != null)
            {
                _items.Add(n);
            }

            //while ((n = MDL0NodeClass.Create(ref addr)) != null)
            //{
            //    if (n is MDL0Node2Class)
            //        _items2.Add(n as MDL0Node2Class);
            //    else if (n is MDL0Node3Class)
            //        _items3.Add(n as MDL0Node3Class);
            //    else if (n is MDL0NodeType4)
            //        _items4.Add((MDL0NodeType4)n);
            //    else if (n is MDL0NodeType5)
            //        _items5.Add((MDL0NodeType5)n);
            //}

            _len = addr - WorkingUncompressed.Address;
            SetSizeInternal(_len);

            return(false);
        }
Beispiel #2
0
        protected override bool OnInitialize()
        {
            VoidPtr addr = WorkingUncompressed.Address;
            object  n    = null;

            while ((n = MDL0NodeClass.Create(ref addr)) != null)
            {
                _items.Add(n);
            }

            _len = addr - WorkingUncompressed.Address;
            //base.OnInitialize();

            return(false);
        }