40 const std::string
s = *
itr;
41 if (lastStr.find(
s) != std::string::npos &&
s.length()) {
102 const bool isClean = (
val == 0) ?
true :
false;
138 outs << std::hex <<
"\"" <<
size <<
"\"";
148 outs << std::hex <<
"\"";
166 const size_t count =
itr->second;
void _appendVal(BYTE val)
bool fillSettings(StatsSettings *settings)
virtual const void fieldsToJSON(std::stringstream &outs, size_t level)
AreaMultiStats(const AreaMultiStats &p1)
Base class for the statistics from analyzed buffer.
double calcShannonEntropy(std::map< T, size_t > &histogram, size_t totalSize)
size_t fill_iat(BYTE *vBuf, size_t vBufSize, IN const peconv::ExportsMapper *exportsMap, IN OUT IATBlock &iat, IN ThunkFoundCallback *callback)
Statistics from a block of data.
std::map< size_t, std::set< BYTE > > frequencies
MultiStatsSettings * settings
void finishLastStr(bool isClean)
ChunkStats(size_t _offset, size_t _size)
void fillSettings(MultiStatsSettings *_settings)
ChunkStats(const ChunkStats &p1)
std::map< BYTE, size_t > histogram
virtual const void fieldsToJSON(std::stringstream &outs, size_t level)
std::map< std::string, size_t > foundStrings
Settings defining what type of stats should be collected.
std::string hasWatchedSubstring(std::string &lastStr)
Searches a given substring among the watchedStrings. If the substring found, return the corresponding...
MultiStatsSettings(const MultiStatsSettings &p1)
std::set< std::string > watchedStrings
Base class for settings defining what type of stats should be collected.