BearParser
Portable Executable parsing library (from PE-bear)
Loading...
Searching...
No Matches
pe_util Namespace Reference

Functions

bool isPrintable (char c)
 
bool isStrLonger (const char *inp, size_t maxLen)
 
bool hasNonPrintable (const char *ptr, size_t maxInp)
 
size_t getAsciiLen (const char *ptr, size_t maxCount, bool acceptNotTerminated=false)
 
size_t getAsciiLenW (const WORD *ptr, size_t maxCount, bool acceptNotTerminated=false)
 
size_t noWhiteCount (char *buf, size_t bufSize)
 
size_t noWhiteCount (std::string)
 
bool validateFuncName (const char *fPtr, size_t bufSize)
 
size_t forwarderNameLen (const char *ptr, size_t max_len)
 
void hexdump (BYTE *buf, size_t bufSize, size_t pad)
 
size_t unitsCount (uint64_t value, uint64_t unit, bool roundup=true)
 
uint64_t roundup (uint64_t value, uint64_t unit)
 
bool isSpaceClear (void *ptr, uint64_t size)
 
bool isHexChar (char c)
 
bool endsWith (std::string string, std::string endStr)
 

Function Documentation

◆ endsWith()

bool pe_util::endsWith ( std::string string,
std::string endStr )

Definition at line 191 of file Util.cpp.

◆ forwarderNameLen()

size_t pe_util::forwarderNameLen ( const char * ptr,
size_t max_len )

Definition at line 116 of file Util.cpp.

Here is the call graph for this function:

◆ getAsciiLen()

size_t pe_util::getAsciiLen ( const char * ptr,
size_t maxCount,
bool acceptNotTerminated = false )

Definition at line 46 of file Util.cpp.

◆ getAsciiLenW()

size_t pe_util::getAsciiLenW ( const WORD * ptr,
size_t maxCount,
bool acceptNotTerminated = false )

Definition at line 58 of file Util.cpp.

◆ hasNonPrintable()

bool pe_util::hasNonPrintable ( const char * ptr,
size_t maxInp )

Definition at line 70 of file Util.cpp.

◆ hexdump()

void pe_util::hexdump ( BYTE * buf,
size_t bufSize,
size_t pad )

Definition at line 180 of file Util.cpp.

◆ isHexChar()

bool pe_util::isHexChar ( char c)

Definition at line 172 of file Util.cpp.

◆ isPrintable()

bool pe_util::isPrintable ( char c)
inline

Definition at line 32 of file Util.h.

◆ isSpaceClear()

bool pe_util::isSpaceClear ( void * ptr,
uint64_t size )

Definition at line 161 of file Util.cpp.

◆ isStrLonger()

bool pe_util::isStrLonger ( const char * inp,
size_t maxLen )

Definition at line 38 of file Util.cpp.

◆ noWhiteCount() [1/2]

size_t pe_util::noWhiteCount ( char * buf,
size_t bufSize )

Definition at line 139 of file Util.cpp.

◆ noWhiteCount() [2/2]

size_t pe_util::noWhiteCount ( std::string s)

Definition at line 149 of file Util.cpp.

◆ roundup()

uint64_t pe_util::roundup ( uint64_t value,
uint64_t unit )
inline

Definition at line 57 of file Util.h.

Here is the call graph for this function:

◆ unitsCount()

size_t pe_util::unitsCount ( uint64_t value,
uint64_t unit,
bool roundup = true )
inline

Definition at line 47 of file Util.h.

Here is the call graph for this function:

◆ validateFuncName()

bool pe_util::validateFuncName ( const char * fPtr,
size_t bufSize )

Definition at line 102 of file Util.cpp.

Here is the call graph for this function: