6#define DOS_PARAGRAPH 0x10
59 const size_t unit_size = 0x200;
60 WORD size =
m_dosHdr->e_cp * unit_size;
62 WORD trimSize = unit_size -
m_dosHdr->e_cblp;
const offset_t INVALID_ADDR
virtual Executable * build(AbstractByteBuffer *buf)
virtual bool signatureMatches(AbstractByteBuffer *buf)
virtual offset_t dosHeaderOffset()
virtual offset_t rvaToRaw(offset_t rva)
DOSExe(AbstractByteBuffer *v_buf)
IMAGE_DOS_HEADER * m_dosHdr
offset_t peSignatureOffset()
virtual offset_t getImageBase(bool recalculate=false)
virtual exe_arch getArch()
DosHdrWrapper * dosHdrWrapper
virtual offset_t getEntryPoint(Executable::addr_type aType=Executable::RVA)
virtual offset_t rawToRva(offset_t raw)
virtual bufsize_t getMappedSize(Executable::addr_type aType)
virtual bufsize_t getAlignment(Executable::addr_type aType) const
virtual bufsize_t getContentSize()