Package org.boris.pecoff4j

Examples of org.boris.pecoff4j.RVAConverter


    private static void writeImageData(PE pe, DataEntry entry, IDataWriter dw)
            throws IOException {
        ImageDataDirectory idd = pe.getOptionalHeader().getDataDirectory(
                entry.index);
        RVAConverter rvc = pe.getSectionTable().getRVAConverter();
        int prd = idd.getVirtualAddress();
        if (entry.index != ImageDataDirectoryType.CERTIFICATE_TABLE)
            prd = rvc.convertVirtualAddressToRawDataPointer(idd
                    .getVirtualAddress());
        if (prd > dw.getPosition()) {
            byte[] pa = pe.getImageData().getPreamble(entry.index);
            if (pa != null)
                dw.writeBytes(pa);
View Full Code Here

TOP

Related Classes of org.boris.pecoff4j.RVAConverter

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.