retdec
Namespaces | Functions | Variables
PeLibAux.cpp File Reference
#include <vector>
#include "retdec/pelib/PeLibInc.h"
#include "retdec/pelib/PeLibAux.h"
#include "retdec/pelib/PeFile.h"

Namespaces

 PeLib
 

Functions

unsigned int PeLib::alignOffset (unsigned int uiOffset, unsigned int uiAlignment)
 
std::uint32_t PeLib::AlignToSize (std::uint32_t ByteSize, std::uint32_t AlignSize)
 
std::uint32_t PeLib::BytesToPages (std::uint32_t ByteSize)
 
std::uint64_t PeLib::fileSize (const std::string &filename)
 
std::uint64_t PeLib::fileSize (std::istream &stream)
 
std::uint64_t PeLib::fileSize (std::fstream &file)
 
std::uint64_t PeLib::fileSize (std::ofstream &file)
 
const char * PeLib::getLoaderErrorString (LoaderError ldrError, bool userFriendly=false)
 
bool PeLib::getLoaderErrorLoadableAnyway (LoaderError ldrError)
 
bool PeLib::pelibIsPrintableChar (int ch)
 
std::size_t PeLib::getStringFromFileOffset (std::istream &stream, std::string &result, std::size_t fileOffset, std::size_t maxLength=0, bool isPrintable=false, bool isNotTooLong=false)
 
bool PeLib::isEqualNc (const std::string &s1, const std::string &s2)
 

Variables

static const std::vector< LoaderErrorInfo > PeLib::LdrErrStrings