Beispiel #1
0
                public override void Deserialize(IUnrealStream stream)
                {
                    var label    = String.Empty;
                    int labelPos = -1;

                    do
                    {
                        if (label != String.Empty)
                        {
                            Decompiler._Labels.Add
                            (
                                new ULabelEntry
                            {
                                Name     = label,
                                Position = labelPos
                            }
                            );
                        }
                        label = stream.ReadName();
                        Decompiler.AlignNameSize();
                        labelPos = stream.ReadInt32();
                        Decompiler.AlignSize(sizeof(int));
                    } while(String.Compare(label, "None", StringComparison.OrdinalIgnoreCase) != 0);
                }
Beispiel #2
0
 public override void Deserialize( IUnrealStream stream )
 {
     var label = String.Empty;
     int labelPos = -1;
     do
     {
         if( label != String.Empty )
         {
             Decompiler._Labels.Add
             (
                 new ULabelEntry
                 {
                     Name = label,
                     Position = labelPos
                 }
             );
         }
         label = stream.ReadName();
         Decompiler.AlignNameSize();
         labelPos = stream.ReadInt32();
         Decompiler.AlignSize( sizeof(int) );
     } while( String.Compare( label, "None", StringComparison.OrdinalIgnoreCase ) != 0 );
 }