Пример #1
0
        private AsInstanceInfo[] ReadMutipleInstances(uint count)
        {
            var res = new AsInstanceInfo[count];

            for (var i = 0; i < count; i++)
            {
                res[i] = ReadInstance();
            }
            return(res);
        }
Пример #2
0
 private void WriteInstance(AsInstanceInfo instance)
 {
     WriteU30(instance.Name);
     WriteU30(instance.SuperName);
     WriteU8((byte)instance.Flags);
     if (instance.HasProtectedNs)
     {
         WriteU30(instance.ProtectedNs);
     }
     WriteMutipleU30(instance.Interfaces);
     WriteU30(instance.InstanceInitializer);
     WriteMultipleTraits(instance.Traits);
 }
Пример #3
0
        private AsInstanceInfo ReadInstance()
        {
            var r = new AsInstanceInfo {
                Name      = ReadU30(),
                SuperName = ReadU30(),
                Flags     = (AsInstanceFlags)ReadU8()
            };

            if (r.HasProtectedNs)
            {
                r.ProtectedNs = ReadU30();
            }
            r.Interfaces          = ReadMultipleU30();
            r.InstanceInitializer = ReadU30();
            r.Traits = ReadMutlipleTraits();

            return(r);
        }
Пример #4
0
 private AsInstanceInfo[] ReadMutipleInstances(uint count)
 {
     var res = new AsInstanceInfo[count];
     for (var i = 0; i < count; i++) {
         res[i] = ReadInstance();
     }
     return res;
 }
Пример #5
0
        private AsInstanceInfo ReadInstance()
        {
            var r = new AsInstanceInfo {
                Name = ReadU30(),
                SuperName = ReadU30(),
                Flags = (AsInstanceFlags)ReadU8()
            };
            if (r.HasProtectedNs)
                r.ProtectedNs = ReadU30();
            r.Interfaces = ReadMultipleU30();
            r.InstanceInitializer = ReadU30();
            r.Traits = ReadMutlipleTraits();

            return r;
        }
Пример #6
0
 private void WriteMultipleInstances(AsInstanceInfo[] vals)
 {
     foreach (var value in vals) {
         WriteInstance(value);
     }
 }
Пример #7
0
 private void WriteInstance(AsInstanceInfo instance)
 {
     WriteU30(instance.Name);
     WriteU30(instance.SuperName);
     WriteU8((byte)instance.Flags);
     if (instance.HasProtectedNs)
         WriteU30(instance.ProtectedNs);
     WriteMutipleU30(instance.Interfaces);
     WriteU30(instance.InstanceInitializer);
     WriteMultipleTraits(instance.Traits);
 }