LIEF: Library to Instrument Executable Formats Version 0.17.0
Loading...
Searching...
No Matches
utils.hpp File Reference
#include <string>
#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.
 

Functions

uint64_t LIEF::align (uint64_t value, uint64_t align_on)
 
uint64_t LIEF::align_down (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.
 
bool LIEF::is_extended ()
 Whether this version of LIEF includes extended features.
 
std::string LIEF::extended_version_info ()
 Details about the extended version.
 
result< std::string > LIEF::demangle (const std::string &mangled)
 Demangle the given input.