Пример #1
0
        public override bool Equals(object obj)
        {
            bool res = (obj is DataDir);

            if (res)
            {
                DataDir that = (DataDir)obj;
                res = (this.virtAddr == that.virtAddr) &&
                      (this.size == that.size);
            }
            return(res);
        }
Пример #2
0
        /// <summary>
        /// </summary>
        public void Read(BinaryReader reader)
        {
            stdFlds = new StdFields(reader);
            ntFlds  = new NTFields(reader);

            exportDir    = new DataDir(reader);
            importDir    = new DataDir(reader);
            resourceDir  = new DataDir(reader);
            exceptionDir = new DataDir(reader);
            securityDir  = new DataDir(reader);
            baseRelocDir = new DataDir(reader);
            debugDir     = new DataDir(reader);
            copyrightDir = new DataDir(reader);
            GPDir        = new DataDir(reader);
            TLSDir       = new DataDir(reader);
            loadCfgDir   = new DataDir(reader);
            boundImpDir  = new DataDir(reader);
            IATDir       = new DataDir(reader);
            delayImpDir  = new DataDir(reader);
            CLIHdrDir    = new DataDir(reader);
            reservedDir  = new DataDir(reader);
        }
Пример #3
0
        public void Read(BinaryReader reader)
        {
            // Header versioning
            cb = reader.ReadUInt32();

            runtimeMaj = reader.ReadInt16();
            runtimeMin = reader.ReadInt16();


            // Symbol table and startup information.
            meta     = new DataDir(reader);
            flags    = (CorFlags)reader.ReadUInt32();
            entryTok = reader.ReadUInt32();

            // Binding information.
            rsrc      = new DataDir(reader);
            strongSig = new DataDir(reader);

            // Regular fixup and binding information.
            codeManTab = new DataDir(reader);
            vtab       = new DataDir(reader);
            jumps      = new DataDir(reader);

            // Managed Native Code.
            eeInfo    = new DataDir(reader);
            helper    = new DataDir(reader);
            dynInfo   = new DataDir(reader);
            delayInfo = new DataDir(reader);
            modImg    = new DataDir(reader);
            extFixups = new DataDir(reader);
            ridMap    = new DataDir(reader);
            dbgMap    = new DataDir(reader);

            // obsolete?
            ipMap = new DataDir(reader);
        }
Пример #4
0
		public void Read(BinaryReader reader)
		{
			// Header versioning
			cb = reader.ReadUInt32 ();
			
			runtimeMaj = reader.ReadInt16 ();
			runtimeMin = reader.ReadInt16 ();
	
			
			// Symbol table and startup information.
			meta = new DataDir (reader);
			flags = (CorFlags) reader.ReadUInt32 ();
			entryTok = reader.ReadUInt32 ();

			// Binding information.
			rsrc  = new DataDir (reader);
			strongSig = new DataDir (reader);
		
			// Regular fixup and binding information.
			codeManTab = new DataDir (reader);
			vtab = new DataDir (reader);
			jumps = new DataDir (reader);

			// Managed Native Code.
			eeInfo = new DataDir (reader);
			helper = new DataDir (reader);
			dynInfo = new DataDir (reader);
			delayInfo = new DataDir (reader);
			modImg = new DataDir (reader);
			extFixups = new DataDir (reader);
			ridMap = new DataDir (reader);
			dbgMap = new DataDir (reader);

			// obsolete?
			ipMap = new DataDir (reader);
		}
Пример #5
0
		static DataDir ()
		{
			Null = new DataDir ();
			Null.virtAddr = 0;
			Null.size = 0;
		}
Пример #6
0
		/// <summary>
		/// </summary>
		public void Read(BinaryReader reader)
		{
			stdFlds = new StdFields (reader);
			ntFlds = new NTFields (reader);

			exportDir = new DataDir (reader);
			importDir = new DataDir (reader);		
			resourceDir = new DataDir (reader);
			exceptionDir = new DataDir (reader);
			securityDir = new DataDir (reader);
			baseRelocDir = new DataDir (reader);
			debugDir = new DataDir (reader);
			copyrightDir = new DataDir (reader);
			GPDir = new DataDir (reader);
			TLSDir = new DataDir (reader);
			loadCfgDir = new DataDir (reader);
			boundImpDir = new DataDir (reader);
			IATDir = new DataDir (reader);
			delayImpDir = new DataDir (reader);
			CLIHdrDir = new DataDir (reader);
			reservedDir = new DataDir (reader);
			
		}
Пример #7
0
 static DataDir()
 {
     Null          = new DataDir();
     Null.virtAddr = 0;
     Null.size     = 0;
 }