Ejemplo n.º 1
0
        protected MonoFundamentalType(MonoSymbolFile file, Cecil.TypeDefinition typedef,
					       string name, FundamentalKind kind, int size)
            : base(file.Language, name, kind, size)
        {
            this.file = file;
            this.typedef = typedef;
        }
Ejemplo n.º 2
0
 protected MonoFundamentalType(MonoSymbolFile file, Cecil.TypeDefinition typedef,
                               string name, FundamentalKind kind, int size)
     : base(file.Language, name, kind, size)
 {
     this.file    = file;
     this.typedef = typedef;
 }
Ejemplo n.º 3
0
        protected MonoClassInfo(MonoSymbolFile file, Cecil.TypeDefinition typedef,
                                TargetMemoryAccess target, TargetAddress klass)
        {
            this.SymbolFile   = file;
            this.KlassAddress = klass;
            this.CecilType    = typedef;

            parent_klass     = MetadataHelper.MonoClassGetParent(target, klass);
            GenericClass     = MetadataHelper.MonoClassGetGenericClass(target, klass);
            GenericContainer = MetadataHelper.MonoClassGetGenericContainer(target, klass);
        }
Ejemplo n.º 4
0
        protected MonoClassInfo(MonoSymbolFile file, Cecil.TypeDefinition typedef,
					 TargetMemoryAccess target, TargetAddress klass)
        {
            this.SymbolFile = file;
            this.KlassAddress = klass;
            this.CecilType = typedef;

            parent_klass = MetadataHelper.MonoClassGetParent (target, klass);
            GenericClass = MetadataHelper.MonoClassGetGenericClass (target, klass);
            GenericContainer = MetadataHelper.MonoClassGetGenericContainer (target, klass);
        }
Ejemplo n.º 5
0
        public static MonoClassInfo ReadCoreType(MonoSymbolFile file,
                                                 Cecil.TypeDefinition typedef,
                                                 TargetMemoryAccess target,
                                                 TargetAddress klass,
                                                 out MonoClassType type)
        {
            MonoClassInfo info = new MonoClassInfo(file, typedef, target, klass);

            type = new MonoClassType(file, typedef, info);
            ((IMonoStructType)type).ClassInfo = info;
            info.struct_type = type;
            info.type        = type;
            return(info);
        }