예제 #1
0
파일: DataDir.cs 프로젝트: retahc/old-code
        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
파일: PEHeader.cs 프로젝트: retahc/old-code
        /// <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
파일: DataDir.cs 프로젝트: emtees/old-code
		static DataDir ()
		{
			Null = new DataDir ();
			Null.virtAddr = 0;
			Null.size = 0;
		}
예제 #6
0
파일: PEHeader.cs 프로젝트: emtees/old-code
		/// <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
파일: DataDir.cs 프로젝트: retahc/old-code
 static DataDir()
 {
     Null          = new DataDir();
     Null.virtAddr = 0;
     Null.size     = 0;
 }