6 if (buf == NULL)
return false;
9 if (magic == NULL)
return false;
11 if ((*magic) == pe::S_DOS || (*magic) == pe::S_DOS2) {
53 if ((*magic) != pe::S_DOS && (*magic) != pe::S_DOS2) {
63 if (lfnew == NULL)
return 0;
65 return static_cast<offset_t>(*lfnew);
virtual BYTE * getContentAt(offset_t offset, bufsize_t size, bool allowExceptions=false)
virtual Executable * build(AbstractByteBuffer *buf)
virtual bool signatureMatches(AbstractByteBuffer *buf)
DOSExe(AbstractByteBuffer *v_buf)
IMAGE_DOS_HEADER * m_dosHdr
offset_t peSignatureOffset()
DosHdrWrapper * dosHdrWrapper
virtual void * getFieldPtr(size_t fieldId, size_t subField=FIELD_NONE)
std::map< size_t, ExeElementWrapper * > wrappers
BYTE * getContentAt(offset_t offset, bufsize_t size, bool allowExceptions=false)
bool append(dbg_level lvl, const char *format,...)