internal class BranchInstr : Instr {
CILLabel dest;
private bool shortVer = true;
- private static readonly byte longInstrOffset = 13;
private int target = 0;
internal BranchInstr(int inst, CILLabel dst) : base(inst)
private static readonly ushort MoreSects = 0x8;
private static readonly ushort InitLocals = 0x10;
private static readonly uint FatSize = 12;
- private static readonly uint FatWords = FatSize/4;
private static readonly byte FatExceptTable = 0x41;
private static readonly byte SmlExceptTable = 0x01;
public class CustomAttribute : MetaDataElement {
- private static readonly ushort prolog = 0x0001;
MetaDataElement parent;
Method type;
uint valIx;
{
PEAPI.SecurityAction sec_action;
ArrayList permissions;
- PEAPI.PermissionSet ps;
public PermissionSet (PEAPI.SecurityAction sec_action)
{
///
public class ClassDef : Class {
- private static readonly byte ElementType_Class = 0x12;
-
Class superType;
ArrayList fields = new ArrayList();
ArrayList methods = new ArrayList();
ArrayList properties;
bool typeIndexChecked = true;
uint fieldIx = 0, methodIx = 0;
- byte[] securityActions;
uint flags;
ClassLayout layout;
ClassDef parentClass;
public class ClassRef : Class, IExternRef, IResolutionScope {
protected IResolutionScope parent;
- ExternClass externClass;
protected MetaData metaData;
internal ClassRef(string nsName, string name, MetaData md) : base(nsName, name, md)
MetaData metaData;
CILInstructions code;
- ArrayList securityActions = new ArrayList();
Param[] parList;
Local[] locals;
bool initLocals;
public class FixedArray : NativeType {
- NativeType elemType;
uint numElem;
//public FixedArray(NativeType elemType, int numElems) : base(0x1E) {
private readonly string systemName = "System";
private Class[] systemClasses = new Class[valueTypeIx+2];
private PrimitiveType[] systemTypes = new PrimitiveType[valueTypeIx];
- private TypeSpec[] specialTypeSpecs = new TypeSpec[valueTypeIx];
+
private static int[] specialNames = {
PrimitiveType.Void.GetName().GetHashCode(),
PrimitiveType.Boolean.GetName().GetHashCode(),
private static readonly uint TildeHeaderSize = 24;
private static readonly uint StreamHeaderSize = 8;
private static readonly uint numMetaDataTables = (int)MDTable.GenericParamConstraint + 1;
- private static readonly uint tildeHeaderSize = 8 + (uint)tildeName.Length;
MetaDataStream strings, us, guid, blob;
internal void WriteTildeStream(FileImage output)
{
- long startTilde = output.Seek(0,SeekOrigin.Current);
output.Write((uint)0); // Reserved
#if NET_2_0
output.Write((byte)2); // MajorVersion
output.Write(count);
}
}
- long tabStart = output.Seek(0,SeekOrigin.Current);
+
// Console.WriteLine("Starting metaData tables at " + tabStart);
for (int i=0; i < numMetaDataTables; i++) {
if (metaDataTables[i] != null) {