LIEF: Library to Instrument Executable Formats Version 0.17.0
|
Namespaces | |
namespace | Android |
namespace | ART |
Namespace related to the LIEF's ART module. | |
namespace | assembly |
Namespace related to assembly/disassembly support. | |
namespace | details |
namespace | DEX |
namespace | dsc |
Namespace related to the dyld shared cache support. | |
namespace | dwarf |
Namespace for the DWARF debug format. | |
namespace | ELF |
Namespace related to the LIEF's ELF module. | |
namespace | logging |
namespace | MachO |
Namespace related to the LIEF's Mach-O module. | |
namespace | OAT |
namespace | objc |
Namespace related to ObjC metadata. | |
namespace | pdb |
namespace | PE |
Namespace related to the LIEF's PE module. | |
namespace | VDEX |
Classes | |
class | AbstractHash |
class | ASN1Reader |
class | Binary |
Abstract binary that exposes an uniform API for the different executable file formats. More... | |
class | BinaryStream |
Class that is used to a read stream of data from different sources. More... | |
struct | debug_location_t |
This structure holds a debug location (source filename & line) More... | |
class | DebugInfo |
class | FileStream |
Stream interface over a std::ifstream More... | |
class | filter_iterator |
Iterator which return a ref on container's values given predicates. More... | |
class | Function |
Class that represents a function in the binary. More... | |
class | Hash |
class | Header |
class | iterator_adaptor_base |
CRTP base class for adapting an iterator to a different type. More... | |
class | iterator_facade_base |
CRTP base class which implements the entire standard iterator facade in terms of a minimal subset of the interface. More... | |
class | iterator_range |
class | MemoryStream |
class | Object |
struct | ok_t |
Opaque structure used by ok_error_t. More... | |
class | Parser |
Main interface to parse an executable regardless of its format. More... | |
struct | pointee_iterator |
An iterator type that allows iterating over the pointees via some other iterator. More... | |
class | pointer_iterator |
struct | range_t |
class | ref_iterator |
Iterator which returns reference on container's values. More... | |
class | Relocation |
Class which represents an abstracted Relocation. More... | |
class | ScopedStream |
class | Section |
Class which represents an abstracted section. More... | |
class | SpanStream |
class | Symbol |
This class represents a symbol in an executable format. More... | |
class | ToggleEndianness |
class | vector_iostream |
class | VectorStream |
class | Visitor |
Typedefs | |
template<typename T > | |
using | result = tl::expected<T, lief_errors> |
Wrapper that contains an Object (T ) or an error. | |
using | ok_error_t = result<ok_t> |
Opaque structure that is used by LIEF to avoid writing result<void> f(...) . Instead, it makes the output explicit such as: | |
template<class T > | |
using | decay_t = typename std::decay<T>::type |
template<class T > | |
using | add_const_t = typename std::add_const<T>::type |
template<class T > | |
using | remove_const_t = typename std::remove_const<T>::type |
template<class T > | |
using | add_lvalue_reference_t = typename std::add_lvalue_reference<T>::type |
template<class T , typename U = typename decay_t<T>::value_type, class CT = typename std::add_const<T>::type> | |
using | const_ref_iterator = ref_iterator<CT, U, typename decay_t<CT>::const_iterator> |
Iterator which return const ref on container's values. | |
template<class T , typename U = typename decay_t<T>::value_type, class CT = typename std::add_const<T>::type> | |
using | const_filter_iterator = filter_iterator<CT, U, typename decay_t<CT>::const_iterator> |
Iterator which return a const ref on container's values given predicates. | |
template<typename WrappedIteratorT , typename T1 = typename std::remove_reference<decltype( **std::declval<WrappedIteratorT>())>::type, typename T2 = typename std::add_pointer<T1>::type> | |
using | raw_pointer_iterator |
template<typename ElementType , std::size_t Extent = tcb::dynamic_extent> | |
using | span = tcb::span<ElementType, Extent> |
Enumerations | |
enum | PLATFORMS { PLAT_UNKNOWN = 0 , PLAT_LINUX , PLAT_ANDROID , PLAT_WINDOWS , PLAT_IOS , PLAT_OSX } |
Functions | |
const char * | to_string (Binary::VA_TYPES e) |
const char * | to_string (Binary::FORMATS e) |
const char * | to_string (Function::FLAGS e) |
const char * | to_string (Header::ARCHITECTURES e) |
const char * | to_string (Header::OBJECT_TYPES e) |
const char * | to_string (Header::MODES e) |
const char * | to_string (Header::ENDIANNESS e) |
std::string | to_json_from_abstract (const Object &v) |
template<typename T > | |
void | swap_endian (T *) |
template<typename T > | |
T | get_swapped_endian (const T &other) |
template<> | |
void | swap_endian< char > (char *hdr) |
template<> | |
void | swap_endian< char16_t > (char16_t *hdr) |
template<> | |
void | swap_endian< uint8_t > (uint8_t *hdr) |
template<> | |
void | swap_endian< uint16_t > (uint16_t *hdr) |
template<> | |
void | swap_endian< uint32_t > (uint32_t *hdr) |
template<> | |
void | swap_endian< uint64_t > (uint64_t *hdr) |
template<> | |
void | swap_endian< int8_t > (int8_t *hdr) |
template<> | |
void | swap_endian< int16_t > (int16_t *hdr) |
template<> | |
void | swap_endian< int32_t > (int32_t *hdr) |
template<> | |
void | swap_endian< int64_t > (int64_t *hdr) |
template<> | |
void | swap_endian< ELF::details::Elf32_Auxv > (ELF::details::Elf32_Auxv *hdr) |
template<> | |
void | swap_endian< ELF::details::Elf32_Dyn > (ELF::details::Elf32_Dyn *hdr) |
template<> | |
void | swap_endian< ELF::details::Elf32_Ehdr > (ELF::details::Elf32_Ehdr *hdr) |
template<> | |
void | swap_endian< ELF::details::Elf32_FileEntry > (ELF::details::Elf32_FileEntry *hdr) |
template<> | |
void | swap_endian< ELF::details::Elf32_Phdr > (ELF::details::Elf32_Phdr *hdr) |
template<> | |
void | swap_endian< ELF::details::Elf32_Rel > (ELF::details::Elf32_Rel *hdr) |
template<> | |
void | swap_endian< ELF::details::Elf32_Rela > (ELF::details::Elf32_Rela *hdr) |
template<> | |
void | swap_endian< ELF::details::Elf32_Shdr > (ELF::details::Elf32_Shdr *hdr) |
template<> | |
void | swap_endian< ELF::details::Elf32_Sym > (ELF::details::Elf32_Sym *hdr) |
template<> | |
void | swap_endian< ELF::details::Elf32_Verdaux > (ELF::details::Elf32_Verdaux *hdr) |
template<> | |
void | swap_endian< ELF::details::Elf32_Verdef > (ELF::details::Elf32_Verdef *hdr) |
template<> | |
void | swap_endian< ELF::details::Elf32_Vernaux > (ELF::details::Elf32_Vernaux *hdr) |
template<> | |
void | swap_endian< ELF::details::Elf32_Verneed > (ELF::details::Elf32_Verneed *hdr) |
template<> | |
void | swap_endian< ELF::details::Elf64_Auxv > (ELF::details::Elf64_Auxv *hdr) |
template<> | |
void | swap_endian< ELF::details::Elf64_Dyn > (ELF::details::Elf64_Dyn *hdr) |
template<> | |
void | swap_endian< ELF::details::Elf64_Ehdr > (ELF::details::Elf64_Ehdr *hdr) |
template<> | |
void | swap_endian< ELF::details::Elf64_FileEntry > (ELF::details::Elf64_FileEntry *hdr) |
template<> | |
void | swap_endian< ELF::details::Elf64_Phdr > (ELF::details::Elf64_Phdr *hdr) |
template<> | |
void | swap_endian< ELF::details::Elf64_Rel > (ELF::details::Elf64_Rel *hdr) |
template<> | |
void | swap_endian< ELF::details::Elf64_Rela > (ELF::details::Elf64_Rela *hdr) |
template<> | |
void | swap_endian< ELF::details::Elf64_Shdr > (ELF::details::Elf64_Shdr *hdr) |
template<> | |
void | swap_endian< ELF::details::Elf64_Sym > (ELF::details::Elf64_Sym *hdr) |
template<> | |
void | swap_endian< ELF::details::Elf64_Verdaux > (ELF::details::Elf64_Verdaux *hdr) |
template<> | |
void | swap_endian< ELF::details::Elf64_Verdef > (ELF::details::Elf64_Verdef *hdr) |
template<> | |
void | swap_endian< ELF::details::Elf64_Vernaux > (ELF::details::Elf64_Vernaux *hdr) |
template<> | |
void | swap_endian< ELF::details::Elf64_Verneed > (ELF::details::Elf64_Verneed *hdr) |
template<> | |
void | swap_endian< MachO::details::arm_thread_state64_t > (MachO::details::arm_thread_state64_t *hdr) |
template<> | |
void | swap_endian< MachO::details::arm_thread_state_t > (MachO::details::arm_thread_state_t *hdr) |
template<> | |
void | swap_endian< MachO::details::build_tool_version > (MachO::details::build_tool_version *hdr) |
template<> | |
void | swap_endian< MachO::details::build_version_command > (MachO::details::build_version_command *hdr) |
template<> | |
void | swap_endian< MachO::details::data_in_code_entry > (MachO::details::data_in_code_entry *hdr) |
template<> | |
void | swap_endian< MachO::details::dyld_info_command > (MachO::details::dyld_info_command *hdr) |
template<> | |
void | swap_endian< MachO::details::dylib_command > (MachO::details::dylib_command *hdr) |
template<> | |
void | swap_endian< MachO::details::dylib_module_32 > (MachO::details::dylib_module_32 *hdr) |
template<> | |
void | swap_endian< MachO::details::dylib_module_64 > (MachO::details::dylib_module_64 *hdr) |
template<> | |
void | swap_endian< MachO::details::dylib_reference > (MachO::details::dylib_reference *hdr) |
template<> | |
void | swap_endian< MachO::details::dylib_table_of_contents > (MachO::details::dylib_table_of_contents *hdr) |
template<> | |
void | swap_endian< MachO::details::dylinker_command > (MachO::details::dylinker_command *hdr) |
template<> | |
void | swap_endian< MachO::details::dysymtab_command > (MachO::details::dysymtab_command *hdr) |
template<> | |
void | swap_endian< MachO::details::encryption_info_command > (MachO::details::encryption_info_command *hdr) |
template<> | |
void | swap_endian< MachO::details::entry_point_command > (MachO::details::entry_point_command *hdr) |
template<> | |
void | swap_endian< MachO::details::fileset_entry_command > (MachO::details::fileset_entry_command *hdr) |
template<> | |
void | swap_endian< MachO::details::fvmfile_command > (MachO::details::fvmfile_command *hdr) |
template<> | |
void | swap_endian< MachO::details::ident_command > (MachO::details::ident_command *hdr) |
template<> | |
void | swap_endian< MachO::details::linkedit_data_command > (MachO::details::linkedit_data_command *hdr) |
template<> | |
void | swap_endian< MachO::details::linker_option_command > (MachO::details::linker_option_command *hdr) |
template<> | |
void | swap_endian< MachO::details::load_command > (MachO::details::load_command *hdr) |
template<> | |
void | swap_endian< MachO::details::mach_header > (MachO::details::mach_header *hdr) |
template<> | |
void | swap_endian< MachO::details::mach_header_64 > (MachO::details::mach_header_64 *hdr) |
template<> | |
void | swap_endian< MachO::details::nlist_32 > (MachO::details::nlist_32 *hdr) |
template<> | |
void | swap_endian< MachO::details::nlist_64 > (MachO::details::nlist_64 *hdr) |
template<> | |
void | swap_endian< MachO::details::prebind_cksum_command > (MachO::details::prebind_cksum_command *hdr) |
template<> | |
void | swap_endian< MachO::details::prebound_dylib_command > (MachO::details::prebound_dylib_command *hdr) |
template<> | |
void | swap_endian< MachO::details::relocation_info > (MachO::details::relocation_info *hdr) |
template<> | |
void | swap_endian< MachO::details::routines_command_32 > (MachO::details::routines_command_32 *hdr) |
template<> | |
void | swap_endian< MachO::details::routines_command_64 > (MachO::details::routines_command_64 *hdr) |
template<> | |
void | swap_endian< MachO::details::rpath_command > (MachO::details::rpath_command *hdr) |
template<> | |
void | swap_endian< MachO::details::scattered_relocation_info > (MachO::details::scattered_relocation_info *hdr) |
template<> | |
void | swap_endian< MachO::details::section_32 > (MachO::details::section_32 *hdr) |
template<> | |
void | swap_endian< MachO::details::section_64 > (MachO::details::section_64 *hdr) |
template<> | |
void | swap_endian< MachO::details::segment_command_32 > (MachO::details::segment_command_32 *hdr) |
template<> | |
void | swap_endian< MachO::details::segment_command_64 > (MachO::details::segment_command_64 *hdr) |
template<> | |
void | swap_endian< MachO::details::source_version_command > (MachO::details::source_version_command *hdr) |
template<> | |
void | swap_endian< MachO::details::sub_client_command > (MachO::details::sub_client_command *hdr) |
template<> | |
void | swap_endian< MachO::details::sub_framework_command > (MachO::details::sub_framework_command *hdr) |
template<> | |
void | swap_endian< MachO::details::sub_library_command > (MachO::details::sub_library_command *hdr) |
template<> | |
void | swap_endian< MachO::details::sub_umbrella_command > (MachO::details::sub_umbrella_command *hdr) |
template<> | |
void | swap_endian< MachO::details::symseg_command > (MachO::details::symseg_command *hdr) |
template<> | |
void | swap_endian< MachO::details::symtab_command > (MachO::details::symtab_command *hdr) |
template<> | |
void | swap_endian< MachO::details::thread_command > (MachO::details::thread_command *hdr) |
template<> | |
void | swap_endian< MachO::details::twolevel_hint > (MachO::details::twolevel_hint *hdr) |
template<> | |
void | swap_endian< MachO::details::twolevel_hints_command > (MachO::details::twolevel_hints_command *hdr) |
template<> | |
void | swap_endian< MachO::details::uuid_command > (MachO::details::uuid_command *hdr) |
template<> | |
void | swap_endian< MachO::details::version_min_command > (MachO::details::version_min_command *hdr) |
template<> | |
void | swap_endian< MachO::details::x86_thread_state64_t > (MachO::details::x86_thread_state64_t *hdr) |
template<> | |
void | swap_endian< MachO::details::x86_thread_state_t > (MachO::details::x86_thread_state_t *hdr) |
template<> | |
void | swap_endian< MachO::details::ppc_thread_state64_t > (MachO::details::ppc_thread_state64_t *hdr) |
template<> | |
void | swap_endian< MachO::details::ppc_thread_state_t > (MachO::details::ppc_thread_state_t *hdr) |
template<class T > | |
lief_errors | get_error (result< T > &err) |
Get the error code associated with the result. | |
template<class T > | |
lief_errors | as_lief_err (result< T > &err) |
Return the lief_errors when the provided result<T> is an error. | |
ok_t | ok () |
Return success for function with return type ok_error_t. | |
bool | is_ok (const ok_error_t &val) |
bool | is_err (const ok_error_t &val) |
Hash::value_type | hash (const Object &v) |
Hash::value_type | hash (const std::vector< uint8_t > &raw) |
Hash::value_type | hash (span< const uint8_t > raw) |
template<class T > | |
iterator_range< T > | make_range (T &&x, T &&y) |
template<typename RangeT , typename WrappedIteratorT = decltype(std::begin(std::declval<RangeT>()))> | |
iterator_range< pointee_iterator< WrappedIteratorT > > | make_pointee_range (RangeT &&Range) |
template<typename RangeT , typename WrappedIteratorT = decltype(std::begin(std::declval<RangeT>()))> | |
iterator_range< pointer_iterator< WrappedIteratorT > > | make_pointer_range (RangeT &&Range) |
std::string | to_json (const Object &v) |
constexpr PLATFORMS | current_platform () |
uint64_t | align (uint64_t value, uint64_t align_on) |
uint64_t | align_down (uint64_t value, uint64_t align_on) |
template<typename T > | |
constexpr T | round (T x) |
template<> | |
uint64_t | round< uint64_t > (uint64_t x) |
constexpr size_t | operator""_KB (unsigned long long kbs) |
constexpr size_t | operator""_MB (unsigned long long mbs) |
constexpr size_t | operator""_GB (unsigned long long gbs) |
std::string | u16tou8 (const std::u16string &string, bool remove_null_char=false) |
Convert a UTF-16 string to a UTF-8 one. | |
result< std::u16string > | u8tou16 (const std::string &string) |
Convert a UTF-8 string to a UTF-16 one. | |
bool | is_extended () |
Whether this version of LIEF includes extended features. | |
std::string | extended_version_info () |
Details about the extended version. | |
result< std::string > | demangle (const std::string &mangled) |
Demangle the given input. | |
LIEF namespace.
using LIEF::add_const_t = typename std::add_const<T>::type |
using LIEF::add_lvalue_reference_t = typename std::add_lvalue_reference<T>::type |
using LIEF::const_filter_iterator = filter_iterator<CT, U, typename decay_t<CT>::const_iterator> |
Iterator which return a const ref on container's values given predicates.
using LIEF::const_ref_iterator = ref_iterator<CT, U, typename decay_t<CT>::const_iterator> |
Iterator which return const ref on container's values.
using LIEF::decay_t = typename std::decay<T>::type |
using LIEF::ok_error_t = result<ok_t> |
Opaque structure that is used by LIEF to avoid writing result<void> f(...)
. Instead, it makes the output explicit such as:
using LIEF::raw_pointer_iterator |
using LIEF::remove_const_t = typename std::remove_const<T>::type |
using LIEF::result = tl::expected<T, lief_errors> |
Wrapper that contains an Object (T
) or an error.
The tl/expected implementation exposes the method value()
to access the underlying object (if no error)
Typical usage is:
See https://tl.tartanllama.xyz/en/latest/api/expected.html for more details
using LIEF::span = tcb::span<ElementType, Extent> |
enum LIEF::PLATFORMS |
|
inline |
Referenced by LIEF::MachO::Section::alignment(), and LIEF::MachO::Binary::virtual_size().
|
inline |
lief_errors LIEF::as_lief_err | ( | result< T > & | err | ) |
Return the lief_errors when the provided result<T>
is an error.
|
constexpr |
References PLAT_ANDROID, PLAT_IOS, PLAT_LINUX, PLAT_OSX, PLAT_UNKNOWN, and PLAT_WINDOWS.
result< std::string > LIEF::demangle | ( | const std::string & | mangled | ) |
Demangle the given input.
This function only works with the extended version of LIEF
std::string LIEF::extended_version_info | ( | ) |
Details about the extended version.
lief_errors LIEF::get_error | ( | result< T > & | err | ) |
Get the error code associated with the result.
T LIEF::get_swapped_endian | ( | const T & | other | ) |
References swap_endian().
Hash::value_type LIEF::hash | ( | const Object & | v | ) |
Hash::value_type LIEF::hash | ( | const std::vector< uint8_t > & | raw | ) |
Hash::value_type LIEF::hash | ( | span< const uint8_t > | raw | ) |
|
inline |
References is_ok().
bool LIEF::is_extended | ( | ) |
Whether this version of LIEF includes extended features.
|
inline |
Referenced by is_err().
iterator_range< pointee_iterator< WrappedIteratorT > > LIEF::make_pointee_range | ( | RangeT && | Range | ) |
References make_range().
iterator_range< pointer_iterator< WrappedIteratorT > > LIEF::make_pointer_range | ( | RangeT && | Range | ) |
References make_range().
iterator_range< T > LIEF::make_range | ( | T && | x, |
T && | y ) |
Referenced by make_pointee_range(), and make_pointer_range().
|
inline |
Return success for function with return type ok_error_t.
Referenced by LIEF::BinaryStream::peek_data(), LIEF::FileStream::peek_in(), LIEF::BinaryStream::peek_objects_at(), LIEF::BinaryStream::read_data(), and LIEF::BinaryStream::read_objects().
|
constexpr |
|
constexpr |
|
constexpr |
|
inlineconstexpr |
References round< uint64_t >().
|
inline |
Referenced by round().
void LIEF::swap_endian | ( | T * | ) |
Referenced by get_swapped_endian(), LIEF::BinaryStream::peek(), and LIEF::vector_iostream::write().
void LIEF::swap_endian< char > | ( | char * | hdr | ) |
void LIEF::swap_endian< char16_t > | ( | char16_t * | hdr | ) |
void LIEF::swap_endian< ELF::details::Elf32_Auxv > | ( | ELF::details::Elf32_Auxv * | hdr | ) |
void LIEF::swap_endian< ELF::details::Elf32_Dyn > | ( | ELF::details::Elf32_Dyn * | hdr | ) |
void LIEF::swap_endian< ELF::details::Elf32_Ehdr > | ( | ELF::details::Elf32_Ehdr * | hdr | ) |
void LIEF::swap_endian< ELF::details::Elf32_FileEntry > | ( | ELF::details::Elf32_FileEntry * | hdr | ) |
void LIEF::swap_endian< ELF::details::Elf32_Phdr > | ( | ELF::details::Elf32_Phdr * | hdr | ) |
void LIEF::swap_endian< ELF::details::Elf32_Rel > | ( | ELF::details::Elf32_Rel * | hdr | ) |
void LIEF::swap_endian< ELF::details::Elf32_Rela > | ( | ELF::details::Elf32_Rela * | hdr | ) |
void LIEF::swap_endian< ELF::details::Elf32_Shdr > | ( | ELF::details::Elf32_Shdr * | hdr | ) |
void LIEF::swap_endian< ELF::details::Elf32_Sym > | ( | ELF::details::Elf32_Sym * | hdr | ) |
void LIEF::swap_endian< ELF::details::Elf32_Verdaux > | ( | ELF::details::Elf32_Verdaux * | hdr | ) |
void LIEF::swap_endian< ELF::details::Elf32_Verdef > | ( | ELF::details::Elf32_Verdef * | hdr | ) |
void LIEF::swap_endian< ELF::details::Elf32_Vernaux > | ( | ELF::details::Elf32_Vernaux * | hdr | ) |
void LIEF::swap_endian< ELF::details::Elf32_Verneed > | ( | ELF::details::Elf32_Verneed * | hdr | ) |
void LIEF::swap_endian< ELF::details::Elf64_Auxv > | ( | ELF::details::Elf64_Auxv * | hdr | ) |
void LIEF::swap_endian< ELF::details::Elf64_Dyn > | ( | ELF::details::Elf64_Dyn * | hdr | ) |
void LIEF::swap_endian< ELF::details::Elf64_Ehdr > | ( | ELF::details::Elf64_Ehdr * | hdr | ) |
void LIEF::swap_endian< ELF::details::Elf64_FileEntry > | ( | ELF::details::Elf64_FileEntry * | hdr | ) |
void LIEF::swap_endian< ELF::details::Elf64_Phdr > | ( | ELF::details::Elf64_Phdr * | hdr | ) |
void LIEF::swap_endian< ELF::details::Elf64_Rel > | ( | ELF::details::Elf64_Rel * | hdr | ) |
void LIEF::swap_endian< ELF::details::Elf64_Rela > | ( | ELF::details::Elf64_Rela * | hdr | ) |
void LIEF::swap_endian< ELF::details::Elf64_Shdr > | ( | ELF::details::Elf64_Shdr * | hdr | ) |
void LIEF::swap_endian< ELF::details::Elf64_Sym > | ( | ELF::details::Elf64_Sym * | hdr | ) |
void LIEF::swap_endian< ELF::details::Elf64_Verdaux > | ( | ELF::details::Elf64_Verdaux * | hdr | ) |
void LIEF::swap_endian< ELF::details::Elf64_Verdef > | ( | ELF::details::Elf64_Verdef * | hdr | ) |
void LIEF::swap_endian< ELF::details::Elf64_Vernaux > | ( | ELF::details::Elf64_Vernaux * | hdr | ) |
void LIEF::swap_endian< ELF::details::Elf64_Verneed > | ( | ELF::details::Elf64_Verneed * | hdr | ) |
void LIEF::swap_endian< int16_t > | ( | int16_t * | hdr | ) |
void LIEF::swap_endian< int32_t > | ( | int32_t * | hdr | ) |
void LIEF::swap_endian< int64_t > | ( | int64_t * | hdr | ) |
void LIEF::swap_endian< int8_t > | ( | int8_t * | hdr | ) |
void LIEF::swap_endian< MachO::details::arm_thread_state64_t > | ( | MachO::details::arm_thread_state64_t * | hdr | ) |
void LIEF::swap_endian< MachO::details::arm_thread_state_t > | ( | MachO::details::arm_thread_state_t * | hdr | ) |
void LIEF::swap_endian< MachO::details::build_tool_version > | ( | MachO::details::build_tool_version * | hdr | ) |
void LIEF::swap_endian< MachO::details::build_version_command > | ( | MachO::details::build_version_command * | hdr | ) |
void LIEF::swap_endian< MachO::details::data_in_code_entry > | ( | MachO::details::data_in_code_entry * | hdr | ) |
void LIEF::swap_endian< MachO::details::dyld_info_command > | ( | MachO::details::dyld_info_command * | hdr | ) |
void LIEF::swap_endian< MachO::details::dylib_command > | ( | MachO::details::dylib_command * | hdr | ) |
void LIEF::swap_endian< MachO::details::dylib_module_32 > | ( | MachO::details::dylib_module_32 * | hdr | ) |
void LIEF::swap_endian< MachO::details::dylib_module_64 > | ( | MachO::details::dylib_module_64 * | hdr | ) |
void LIEF::swap_endian< MachO::details::dylib_reference > | ( | MachO::details::dylib_reference * | hdr | ) |
void LIEF::swap_endian< MachO::details::dylib_table_of_contents > | ( | MachO::details::dylib_table_of_contents * | hdr | ) |
void LIEF::swap_endian< MachO::details::dylinker_command > | ( | MachO::details::dylinker_command * | hdr | ) |
void LIEF::swap_endian< MachO::details::dysymtab_command > | ( | MachO::details::dysymtab_command * | hdr | ) |
void LIEF::swap_endian< MachO::details::encryption_info_command > | ( | MachO::details::encryption_info_command * | hdr | ) |
void LIEF::swap_endian< MachO::details::entry_point_command > | ( | MachO::details::entry_point_command * | hdr | ) |
void LIEF::swap_endian< MachO::details::fileset_entry_command > | ( | MachO::details::fileset_entry_command * | hdr | ) |
void LIEF::swap_endian< MachO::details::fvmfile_command > | ( | MachO::details::fvmfile_command * | hdr | ) |
void LIEF::swap_endian< MachO::details::ident_command > | ( | MachO::details::ident_command * | hdr | ) |
void LIEF::swap_endian< MachO::details::linkedit_data_command > | ( | MachO::details::linkedit_data_command * | hdr | ) |
void LIEF::swap_endian< MachO::details::linker_option_command > | ( | MachO::details::linker_option_command * | hdr | ) |
void LIEF::swap_endian< MachO::details::load_command > | ( | MachO::details::load_command * | hdr | ) |
void LIEF::swap_endian< MachO::details::mach_header > | ( | MachO::details::mach_header * | hdr | ) |
void LIEF::swap_endian< MachO::details::mach_header_64 > | ( | MachO::details::mach_header_64 * | hdr | ) |
void LIEF::swap_endian< MachO::details::nlist_32 > | ( | MachO::details::nlist_32 * | hdr | ) |
void LIEF::swap_endian< MachO::details::nlist_64 > | ( | MachO::details::nlist_64 * | hdr | ) |
void LIEF::swap_endian< MachO::details::ppc_thread_state64_t > | ( | MachO::details::ppc_thread_state64_t * | hdr | ) |
void LIEF::swap_endian< MachO::details::ppc_thread_state_t > | ( | MachO::details::ppc_thread_state_t * | hdr | ) |
void LIEF::swap_endian< MachO::details::prebind_cksum_command > | ( | MachO::details::prebind_cksum_command * | hdr | ) |
void LIEF::swap_endian< MachO::details::prebound_dylib_command > | ( | MachO::details::prebound_dylib_command * | hdr | ) |
void LIEF::swap_endian< MachO::details::relocation_info > | ( | MachO::details::relocation_info * | hdr | ) |
void LIEF::swap_endian< MachO::details::routines_command_32 > | ( | MachO::details::routines_command_32 * | hdr | ) |
void LIEF::swap_endian< MachO::details::routines_command_64 > | ( | MachO::details::routines_command_64 * | hdr | ) |
void LIEF::swap_endian< MachO::details::rpath_command > | ( | MachO::details::rpath_command * | hdr | ) |
void LIEF::swap_endian< MachO::details::scattered_relocation_info > | ( | MachO::details::scattered_relocation_info * | hdr | ) |
void LIEF::swap_endian< MachO::details::section_32 > | ( | MachO::details::section_32 * | hdr | ) |
void LIEF::swap_endian< MachO::details::section_64 > | ( | MachO::details::section_64 * | hdr | ) |
void LIEF::swap_endian< MachO::details::segment_command_32 > | ( | MachO::details::segment_command_32 * | hdr | ) |
void LIEF::swap_endian< MachO::details::segment_command_64 > | ( | MachO::details::segment_command_64 * | hdr | ) |
void LIEF::swap_endian< MachO::details::source_version_command > | ( | MachO::details::source_version_command * | hdr | ) |
void LIEF::swap_endian< MachO::details::sub_client_command > | ( | MachO::details::sub_client_command * | hdr | ) |
void LIEF::swap_endian< MachO::details::sub_framework_command > | ( | MachO::details::sub_framework_command * | hdr | ) |
void LIEF::swap_endian< MachO::details::sub_library_command > | ( | MachO::details::sub_library_command * | hdr | ) |
void LIEF::swap_endian< MachO::details::sub_umbrella_command > | ( | MachO::details::sub_umbrella_command * | hdr | ) |
void LIEF::swap_endian< MachO::details::symseg_command > | ( | MachO::details::symseg_command * | hdr | ) |
void LIEF::swap_endian< MachO::details::symtab_command > | ( | MachO::details::symtab_command * | hdr | ) |
void LIEF::swap_endian< MachO::details::thread_command > | ( | MachO::details::thread_command * | hdr | ) |
void LIEF::swap_endian< MachO::details::twolevel_hint > | ( | MachO::details::twolevel_hint * | hdr | ) |
void LIEF::swap_endian< MachO::details::twolevel_hints_command > | ( | MachO::details::twolevel_hints_command * | hdr | ) |
void LIEF::swap_endian< MachO::details::uuid_command > | ( | MachO::details::uuid_command * | hdr | ) |
void LIEF::swap_endian< MachO::details::version_min_command > | ( | MachO::details::version_min_command * | hdr | ) |
void LIEF::swap_endian< MachO::details::x86_thread_state64_t > | ( | MachO::details::x86_thread_state64_t * | hdr | ) |
void LIEF::swap_endian< MachO::details::x86_thread_state_t > | ( | MachO::details::x86_thread_state_t * | hdr | ) |
void LIEF::swap_endian< uint16_t > | ( | uint16_t * | hdr | ) |
void LIEF::swap_endian< uint32_t > | ( | uint32_t * | hdr | ) |
void LIEF::swap_endian< uint64_t > | ( | uint64_t * | hdr | ) |
void LIEF::swap_endian< uint8_t > | ( | uint8_t * | hdr | ) |
std::string LIEF::to_json | ( | const Object & | v | ) |
std::string LIEF::to_json_from_abstract | ( | const Object & | v | ) |
const char * LIEF::to_string | ( | Binary::FORMATS | e | ) |
const char * LIEF::to_string | ( | Binary::VA_TYPES | e | ) |
const char * LIEF::to_string | ( | Function::FLAGS | e | ) |
const char * LIEF::to_string | ( | Header::ARCHITECTURES | e | ) |
const char * LIEF::to_string | ( | Header::ENDIANNESS | e | ) |
const char * LIEF::to_string | ( | Header::MODES | e | ) |
const char * LIEF::to_string | ( | Header::OBJECT_TYPES | e | ) |
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.