|
BearParser
Portable Executable parsing library (from PE-bear)
|
#include <AbstractByteBuffer.h>
Public Member Functions | |
| AbstractByteBuffer () | |
| virtual | ~AbstractByteBuffer () |
| virtual bufsize_t | getContentSize ()=0 |
| virtual BYTE * | getContent ()=0 |
| virtual bool | isTruncated () |
| virtual bool | isResized () |
| BYTE | operator[] (size_t idx) |
| virtual offset_t | getOffset (void *ptr, bool allowExceptions=false) |
| virtual BYTE * | getContentAt (offset_t offset, bufsize_t size, bool allowExceptions=false) |
| virtual BYTE * | getContentAtPtr (BYTE *ptr, bufsize_t size, bool allowExceptions=false) |
| virtual bool | setBufferedValue (BYTE *dstPtr, BYTE *srcPtr, bufsize_t srcSize, bufsize_t paddingSize, bool allowExceptions=false) |
| bool | setStringValue (offset_t rawOffset, QString newText) |
| QString | getStringValue (offset_t rawOffset, bufsize_t len=BUFSIZE_MAX, bool acceptNonTerminated=false) |
| QString | getWStringValue (offset_t rawOffset, bufsize_t len) |
| QString | getWAsciiStringValue (offset_t rawOffset, bufsize_t len, bool acceptNonTerminated=false) |
| bufsize_t | getMaxSizeFromOffset (offset_t startOffset) |
| bufsize_t | getMaxSizeFromPtr (BYTE *ptr) |
| bool | isAreaEmpty (offset_t rawOffset, bufsize_t size) |
| bool | fillContent (BYTE filling) |
| bool | pasteBuffer (offset_t rawOffset, AbstractByteBuffer *buf, bool allowTrunc) |
| bool | containsBlock (offset_t rawOffset, bufsize_t size) |
| bool | intersectsBlock (offset_t rawOffset, bufsize_t size) |
| uint64_t | getNumValue (offset_t offset, bufsize_t size, bool *isOk) |
| bool | setNumValue (offset_t offset, bufsize_t size, uint64_t newVal) |
| bool | setTextValue (char *textPtr, std::string newText, size_t fieldLimitLen=0) |
| virtual bool | resize (bufsize_t newSize) |
| offset_t | substFragmentByFile (offset_t offset, bufsize_t contentSize, QFile &fIn) |
Static Public Member Functions | |
| static bool | isValid (AbstractByteBuffer *buf) |
Definition at line 35 of file AbstractByteBuffer.h.
|
inline |
Definition at line 40 of file AbstractByteBuffer.h.
|
inlinevirtual |
Definition at line 41 of file AbstractByteBuffer.h.
| bool AbstractByteBuffer::fillContent | ( | BYTE | filling | ) |
|
pure virtual |
Implemented in BufferView, ByteBuffer, Executable, ExeElementWrapper, FileBuffer, and FileView.
|
virtual |
Reimplemented in Executable.
Definition at line 57 of file AbstractByteBuffer.cpp.

|
virtual |
Reimplemented in Executable.
Definition at line 99 of file AbstractByteBuffer.cpp.

|
pure virtual |
Implemented in BufferView, ByteBuffer, Executable, ExeElementWrapper, FileBuffer, and FileView.
|
inline |
|
virtual |
Reimplemented in ExeElementWrapper.
Definition at line 35 of file AbstractByteBuffer.cpp.

| QString AbstractByteBuffer::getStringValue | ( | offset_t | rawOffset, |
| bufsize_t | len = BUFSIZE_MAX, | ||
| bool | acceptNonTerminated = false ) |
|
inlinevirtual |
Reimplemented in ByteBuffer, Executable, and FileBuffer.
Definition at line 46 of file AbstractByteBuffer.h.
|
inlinevirtual |
Reimplemented in Executable, FileBuffer, and FileView.
Definition at line 45 of file AbstractByteBuffer.h.
|
static |
| BYTE AbstractByteBuffer::operator[] | ( | size_t | idx | ) |
| bool AbstractByteBuffer::pasteBuffer | ( | offset_t | rawOffset, |
| AbstractByteBuffer * | buf, | ||
| bool | allowTrunc ) |
|
inlinevirtual |
Reimplemented in ByteBuffer, Executable, FileBuffer, and MappedExe.
Definition at line 76 of file AbstractByteBuffer.h.
| bool AbstractByteBuffer::setStringValue | ( | offset_t | rawOffset, |
| QString | newText ) |
| bool AbstractByteBuffer::setTextValue | ( | char * | textPtr, |
| std::string | newText, | ||
| size_t | fieldLimitLen = 0 ) |