16#ifndef LIEF_ENDIANNESS_SUPPORT_H
17#define LIEF_ENDIANNESS_SUPPORT_H
22#define LIEF_ENDIAN_SUPPORT(X) \
24 LIEF_API void swap_endian<X>(X * hdr)
29namespace ELF::details {
33struct Elf32_FileEntry;
46struct Elf64_FileEntry;
60struct arm_thread_state64_t;
61struct arm_thread_state_t;
62struct build_tool_version;
63struct build_version_command;
64struct data_in_code_entry;
65struct dyld_info_command;
67struct dylib_module_32;
68struct dylib_module_64;
69struct dylib_reference;
70struct dylib_table_of_contents;
71struct dylinker_command;
72struct dysymtab_command;
73struct encryption_info_command;
74struct entry_point_command;
75struct fileset_entry_command;
76struct fvmfile_command;
78struct linkedit_data_command;
79struct linker_option_command;
86struct prebind_cksum_command;
87struct prebound_dylib_command;
88struct relocation_info;
89struct routines_command_32;
90struct routines_command_64;
92struct scattered_relocation_info;
95struct segment_command_32;
96struct segment_command_64;
97struct source_version_command;
98struct sub_client_command;
99struct sub_framework_command;
100struct sub_library_command;
101struct sub_umbrella_command;
102struct symseg_command;
103struct symtab_command;
104struct thread_command;
106struct twolevel_hints_command;
108struct version_min_command;
109struct x86_thread_state64_t;
110struct x86_thread_state_t;
111struct ppc_thread_state_t;
112struct ppc_thread_state64_t;
139#if defined(LIEF_ELF_SUPPORT)
168#if defined(LIEF_MACHO_SUPPORT)
#define LIEF_ENDIAN_SUPPORT(X)
Definition endianness_support.hpp:22
Definition endianness_support.hpp:59
LIEF namespace.
Definition Abstract/Binary.hpp:41
T get_swapped_endian(const T &other)
Definition endianness_support.hpp:120
void swap_endian(T *)
Definition endianness_support.hpp:117