Examples of RVAConverter


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
Copyright © 2018 www.massapi.com. 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.