Layout information for a class (.class [sequential | explicit])
Inheritance: MetaDataElement
Exemple #1
0
 /// <summary>
 /// Add layout information for this class.  This class must have the
 /// sequential or explicit attribute.
 /// </summary>
 /// <param name="packSize">packing size (.pack)</param>
 /// <param name="classSize">class size (.size)</param>
 public void AddLayoutInfo(int packSize, int classSize)
 {
     layout = new ClassLayout(packSize,classSize,this);
 }
Exemple #2
0
 internal static void Read(PEReader buff, TableRow[] layouts)
 {
     for (int i=0; i < layouts.Length; i++ ) {
         layouts[i] = new ClassLayout(buff);
     }
 }