Ejemplo n.º 1
0
 public override void vmethod_2(ref int int_2)
 {
     int_2 += 20;
     if (base.Nodes.Count != 0)
     {
         ((AsciiValueNode)base.Nodes[0]).vmethod_2(ref int_2);
         int_2++;
         int_2 += AbstractTreeNode1.smethod_0((long)int_2);
     }
 }
Ejemplo n.º 2
0
 public override void vmethod_14(Stream26 stream26_0)
 {
     stream26_0.WriteInt(this.int_0);
     stream26_0.WriteInt(this.byte_0.Length);
     byte[] array = new Class320().method_0(this.byte_0);
     if (this.byte_0.Length <= array.Length)
     {
         array = this.byte_0;
     }
     stream26_0.WriteInt(array.Length);
     stream26_0.WriteByteArray(array, false);
     stream26_0.WriteNBytes(0, AbstractTreeNode1.smethod_0(stream26_0.Position));
 }
Ejemplo n.º 3
0
        public override void vmethod_13(Stream26 stream26_0)
        {
            this.int_0 = stream26_0.ReadInt();
            this.int_1 = stream26_0.ReadInt();
            int num = stream26_0.ReadInt();

            stream26_0.ReadInt();
            if (num != 0)
            {
                base.Nodes.Add(new AsciiValueNode(stream26_0.ReadAsciiStringAt(num)));
                stream26_0.Position += (long)AbstractTreeNode1.smethod_0(stream26_0.Position);
            }
        }
Ejemplo n.º 4
0
 public override void vmethod_2(ref int int_1)
 {
     int_1 += 12;
     if (this.byte_0 != null)
     {
         byte[] array = new Class320().method_0(this.byte_0);
         if (this.byte_0.Length <= array.Length)
         {
             array = this.byte_0;
         }
         int_1 += array.Length;
     }
     int_1 += AbstractTreeNode1.smethod_0((long)int_1);
 }
Ejemplo n.º 5
0
        public override void vmethod_13(Stream26 stream26_0)
        {
            this.int_0 = stream26_0.ReadInt();
            int num  = stream26_0.ReadInt();
            int num2 = stream26_0.ReadInt();

            byte[] byte_ = stream26_0.ReadBytes(num2, false);
            if (num == num2)
            {
                this.byte_0 = byte_;
            }
            else
            {
                this.byte_0 = new Class320().method_4(byte_);
            }
            stream26_0.Position += (long)AbstractTreeNode1.smethod_0(stream26_0.Position);
        }
Ejemplo n.º 6
0
 public override void vmethod_14(Stream26 stream26_0)
 {
     byte[] array = new byte[4];
     array[1] = (this.vmethod_7() ? (byte)32 : (byte)4);
     array[2] = 3;
     stream26_0.WriteByteArray(array, false);
     stream26_0.WriteInt(this.int_0);
     stream26_0.WriteInt(this.int_1);
     if (base.Nodes.Count != 0)
     {
         stream26_0.WriteInt((int)stream26_0.Position + 8);
         stream26_0.WriteInt(0);
         stream26_0.WriteString(this.method_7());
         stream26_0.WriteByte2(0);
         stream26_0.WriteNBytes(0, AbstractTreeNode1.smethod_0(stream26_0.Position));
         return;
     }
     stream26_0.WriteNBytes(0, 8);
 }
Ejemplo n.º 7
0
        public T method_5 <T>(T gparam_0) where T : AbstractTreeNode1
        {
            if (this.CompareTo(gparam_0) == 0)
            {
                return((T)((object)this));
            }
            if (base.Nodes.Count != 0 && base.Nodes[0] is AbstractTreeNode1)
            {
                IEnumerator enumerator = base.Nodes.GetEnumerator();
                T           result;
                try
                {
                    while (enumerator.MoveNext())
                    {
                        AbstractTreeNode1 @class = (AbstractTreeNode1)enumerator.Current;
                        T t;
                        if ((t = @class.method_5 <T>(gparam_0)) != null)
                        {
                            result = t;
                            return(result);
                        }
                    }
                    goto IL_84;
                }
                finally
                {
                    IDisposable disposable = enumerator as IDisposable;
                    if (disposable != null)
                    {
                        disposable.Dispose();
                    }
                }
                return(result);
            }
IL_84:
            return(default(T));
        }
Ejemplo n.º 8
0
        public override void vmethod_13(Stream26 stream26_0)
        {
            this.int_0 = stream26_0.ReadInt();
            if (this is FloatStructureNode)
            {
                base.Nodes.Add(new FloatValueNode(stream26_0.ReadFloat()));
            }
            else if (this is IntegerStructureNode)
            {
                base.Nodes.Add(new IntegerValueNode(stream26_0.ReadInt()));
            }
            else if (this is TagStructureNode || this is FileTagStructureNode)
            {
                base.Nodes.Add(new TagValueNode(stream26_0.ReadInt()));
            }
            int num = stream26_0.ReadInt();

            if (num != 0)
            {
                AbstractTreeNode1 @class = (base.Parent is StructureHeaderNode) ? (base.Parent as StructureHeaderNode).method_11(stream26_0.ReadIntAt(num)) : this.vmethod_12(stream26_0.ReadIntAt(num, true));
                base.method_1().Nodes.Add(@class);
                @class.method_4(stream26_0);
            }
        }
Ejemplo n.º 9
0
 public bool method_6 <T>(ref T gparam_0) where T : AbstractTreeNode1
 {
     if (this.CompareTo(gparam_0) == 0)
     {
         gparam_0 = (T)((object)this);
         return(true);
     }
     if (base.Nodes.Count != 0 && base.Nodes[0] is AbstractTreeNode1)
     {
         IEnumerator enumerator = base.Nodes.GetEnumerator();
         bool        result;
         try
         {
             while (enumerator.MoveNext())
             {
                 AbstractTreeNode1 @class = (AbstractTreeNode1)enumerator.Current;
                 if (@class.method_6 <T>(ref gparam_0))
                 {
                     result = true;
                     return(result);
                 }
             }
             return(false);
         }
         finally
         {
             IDisposable disposable = enumerator as IDisposable;
             if (disposable != null)
             {
                 disposable.Dispose();
             }
         }
         return(result);
     }
     return(false);
 }