Esempio n. 1
0
 private void writeClass(ABCFile.Class v)
 {
     writeU30(v.cinit);
     writeU30((uint)v.traits.Length);
     foreach (var value in v.traits)
     {
         writeTrait(value);
     }
 }
Esempio n. 2
0
        private ABCFile.Class readClass()
        {
            var r = new ABCFile.Class();

            r.cinit  = readU30();
            r.traits = new ABCFile.TraitsInfo[readU30()];
            for (int i = 0; i < r.traits.Length; i++)
            {
                r.traits[i] = readTrait();
            }
            return(r);
        }