code: private COFFFileHeader loadCOFFFileHeader(PESignature pesig,
              RandomAccessFile raf) throws IOException {
          // coff header starts right after the PE signature
          long offset = pesig.getOffset() + PESignature.PE_SIG.length;
          logger.info("COFF Header offset: " + offset);
          // read bytes, size is fixed anyway
          byte[] headerbytes = loadBytesSafely(offset,
                  COFFFileHeader.HEADER_SIZE, raf);
          // construct header
          return COFFFileHeader.newInstance(headerbytes, offset);
      }
docs: Loads the COFF File header. Presumes a valid PE file.
  
  @param pesig
  pe signature
  @param raf
  the random access file instance
  @return coff file header
  @throws IOException
  if unable to read header