Package org.boris.pecoff4j

Examples of org.boris.pecoff4j.SectionTable


        dw.writeDoubleWord(idd.getSize());
    }

    private static void writeSectionHeaders(PE pe, IDataWriter dw)
            throws IOException {
        SectionTable st = pe.getSectionTable();
        int ns = st.getNumberOfSections();
        for (int i = 0; i < ns; i++) {
            SectionHeader sh = st.getHeader(i);
            writeSectionHeader(sh, dw);
        }
    }
View Full Code Here


        dw.writeBytes(pe.getImageData().getDebugRawData());
    }

    private static void writeSection(PE pe, DataEntry entry, IDataWriter dw)
            throws IOException {
        SectionTable st = pe.getSectionTable();
        SectionHeader sh = st.getHeader(entry.index);
        SectionData sd = st.getSection(entry.index);
        int prd = sh.getPointerToRawData();
        if (prd > dw.getPosition()) {
            byte[] pa = sd.getPreamble();
            if (pa != null) {
                dw.writeBytes(pa);
View Full Code Here

TOP

Related Classes of org.boris.pecoff4j.SectionTable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.