Beispiel #1
0
        public void Write(BinaryWriter writer)
        {
            // Header versioning
            writer.Write(cb);

            writer.Write(runtimeMaj);
            writer.Write(runtimeMin);

            // Symbol table and startup information.
            meta.Write(writer);
            writer.Write((uint)flags);
            writer.Write(entryTok);

            // Binding information.
            rsrc.Write(writer);
            strongSig.Write(writer);

            // Regular fixup and binding information.
            codeManTab.Write(writer);
            vtab.Write(writer);
            jumps.Write(writer);

            // Managed Native Code.
            eeInfo.Write(writer);
            helper.Write(writer);
            dynInfo.Write(writer);
            delayInfo.Write(writer);
            modImg.Write(writer);
            extFixups.Write(writer);
            ridMap.Write(writer);
            dbgMap.Write(writer);

            // obsolete?
            ipMap.Write(writer);
        }
Beispiel #2
0
        public void Write(BinaryWriter writer)
        {
            stdFlds.Write(writer);
            ntFlds.Write(writer);

            exportDir.Write(writer);
            importDir.Write(writer);
            resourceDir.Write(writer);
            exceptionDir.Write(writer);
            securityDir.Write(writer);
            baseRelocDir.Write(writer);
            debugDir.Write(writer);
            copyrightDir.Write(writer);
            GPDir.Write(writer);
            TLSDir.Write(writer);
            loadCfgDir.Write(writer);
            boundImpDir.Write(writer);
            IATDir.Write(writer);
            delayImpDir.Write(writer);
            CLIHdrDir.Write(writer);
            reservedDir.Write(writer);
        }