LIEF: Library to Instrument Executable Formats Version 0.15.1
Loading...
Searching...
No Matches
utils.hpp File Reference
#include <vector>
#include <string>
#include "LIEF/span.hpp"
#include "LIEF/types.hpp"
#include "LIEF/visibility.h"
#include "LIEF/errors.hpp"
Include dependency graph for utils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  LIEF
 LIEF namespace.
 
namespace  LIEF::LEB128
 

Functions

uint64_t LIEF::align (uint64_t value, uint64_t align_on)
 
template<typename T >
constexpr T LIEF::round (T x)
 
template<>
uint64_t LIEF::round< uint64_t > (uint64_t x)
 
constexpr size_t LIEF::operator""_KB (unsigned long long kbs)
 
constexpr size_t LIEF::operator""_MB (unsigned long long mbs)
 
constexpr size_t LIEF::operator""_GB (unsigned long long gbs)
 
std::string LIEF::u16tou8 (const std::u16string &string, bool remove_null_char=false)
 Convert a UTF-16 string to a UTF-8 one.
 
result< std::u16string > LIEF::u8tou16 (const std::string &string)
 Convert a UTF-8 string to a UTF-16 one.
 
std::string LIEF::hex_str (uint8_t c)
 
std::string LIEF::hex_dump (const std::vector< uint8_t > &data, const std::string &sep=":")
 
std::string LIEF::hex_dump (span< const uint8_t > data, const std::string &sep=":")
 
bool LIEF::is_hex_number (const std::string &nb)
 Check if the given number is a hex-like string.
 
bool LIEF::is_extended ()
 Whether this version of LIEF includes extended features.
 
std::vector< uint8_t > LIEF::LEB128::uencode (uint64_t value)