Package org.jakstab.util

Examples of org.jakstab.util.BinaryFileInputBuffer


 
  public ObjectFile(InputStream inStream, Architecture arch) throws java.io.IOException, BinaryParseException {

    imageBase = 0x1000;
    inBuf = new BinaryFileInputBuffer(inStream);

    coff_header = new COFF_Header(inBuf);
    logger.debug("Reading " + coff_header.getNumberOfSections() + " sections.");

    ///// Parse Section Headers and sections /////////////////////////
View Full Code Here


  private Map<AbsoluteAddress, String> symbolMap;
  private Set<ExportedSymbol> functionSymbols;

  public ELFModule(File moduleFile, Architecture architecture) throws IOException, BinaryParseException {
   
    inBuf = new BinaryFileInputBuffer(new FileInputStream(moduleFile));
    byte[] data = inBuf.getByteArray();
    elf = new Elf(moduleFile.getAbsolutePath());
    elf.loadSymbols();
   
    requiredLibraries = new FastSet<String>();
View Full Code Here

  private Disassembler disassembler;

  public RawModule(File file, Architecture architecture) throws IOException {
    logger.info("Loading image as raw binary...");
    InputStream inStream = new FileInputStream(file);
    inBuf = new BinaryFileInputBuffer(inStream);
    baseAddress = new AbsoluteAddress(0x0);
  }
View Full Code Here

TOP

Related Classes of org.jakstab.util.BinaryFileInputBuffer

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.