#include <mach-o/swap.h>

mach-o/swap.h

__cplusplus
includes: stdint.h, architecture/byte_order.h, mach-o/fat.h, mach-o/loader.h, mach-o/nlist.h, mach-o/reloc.h, mach-o/ranlib.h, Availability.h, TargetConditionals.h
55 functions

functionswap_fat_header

__CCTOOLS_DEPRECATED_MSG("use macho_for_each_slice()")
extern void swap_fat_header(
	struct fat_header *fat_header,
	enum NXByteOrder target_byte_order
)
deprecated

functionswap_fat_arch

__CCTOOLS_DEPRECATED_MSG("use macho_for_each_slice()")
extern void swap_fat_arch(
	struct fat_arch *fat_archs,
	uint32_t nfat_arch,
	enum NXByteOrder target_byte_order
)
deprecated

functionswap_fat_arch_64

__CCTOOLS_DEPRECATED_MSG("use macho_for_each_slice()")
extern void swap_fat_arch_64(
	struct fat_arch_64 *fat_archs64,
	uint32_t nfat_arch,
	enum NXByteOrder target_byte_order
)
deprecated

functionswap_mach_header

__CCTOOLS_DEPRECATED
extern void swap_mach_header(struct mach_header *mh, enum NXByteOrder target_byte_order)
deprecated

functionswap_mach_header_64

__CCTOOLS_DEPRECATED
extern void swap_mach_header_64(
	struct mach_header_64 *mh,
	enum NXByteOrder target_byte_order
)
deprecated

functionswap_load_command

__CCTOOLS_DEPRECATED
extern void swap_load_command(struct load_command *lc, enum NXByteOrder target_byte_order)
deprecated

functionswap_segment_command

__CCTOOLS_DEPRECATED
extern void swap_segment_command(
	struct segment_command *sg,
	enum NXByteOrder target_byte_order
)
deprecated

functionswap_segment_command_64

__CCTOOLS_DEPRECATED
extern void swap_segment_command_64(
	struct segment_command_64 *sg,
	enum NXByteOrder target_byte_order
)
deprecated

functionswap_section

__CCTOOLS_DEPRECATED
extern void swap_section(
	struct section *s,
	uint32_t nsects,
	enum NXByteOrder target_byte_order
)
deprecated

functionswap_section_64

__CCTOOLS_DEPRECATED
extern void swap_section_64(
	struct section_64 *s,
	uint32_t nsects,
	enum NXByteOrder target_byte_order
)
deprecated

functionswap_symtab_command

__CCTOOLS_DEPRECATED
extern void swap_symtab_command(
	struct symtab_command *st,
	enum NXByteOrder target_byte_order
)
deprecated

functionswap_dysymtab_command

__CCTOOLS_DEPRECATED
extern void swap_dysymtab_command(
	struct dysymtab_command *dyst,
	enum NXByteOrder target_byte_sex
)
deprecated

functionswap_symseg_command

__CCTOOLS_DEPRECATED
extern void swap_symseg_command(
	struct symseg_command *ss,
	enum NXByteOrder target_byte_order
)
deprecated

functionswap_fvmlib_command

__CCTOOLS_DEPRECATED
extern void swap_fvmlib_command(
	struct fvmlib_command *fl,
	enum NXByteOrder target_byte_order
)
deprecated

functionswap_dylib_command

__CCTOOLS_DEPRECATED
extern void swap_dylib_command(struct dylib_command *dl, enum NXByteOrder target_byte_sex)
deprecated

functionswap_sub_framework_command

__CCTOOLS_DEPRECATED
extern void swap_sub_framework_command(
	struct sub_framework_command *sub,
	enum NXByteOrder target_byte_sex
)
deprecated

functionswap_sub_umbrella_command

__CCTOOLS_DEPRECATED
extern void swap_sub_umbrella_command(
	struct sub_umbrella_command *usub,
	enum NXByteOrder target_byte_sex
)
deprecated

functionswap_sub_library_command

__CCTOOLS_DEPRECATED
extern void swap_sub_library_command(
	struct sub_library_command *lsub,
	enum NXByteOrder target_byte_sex
)
deprecated

functionswap_sub_client_command

__CCTOOLS_DEPRECATED
extern void swap_sub_client_command(
	struct sub_client_command *csub,
	enum NXByteOrder target_byte_sex
)
deprecated

functionswap_prebound_dylib_command

__CCTOOLS_DEPRECATED
extern void swap_prebound_dylib_command(
	struct prebound_dylib_command *pbdylib,
	enum NXByteOrder target_byte_sex
)
deprecated

functionswap_dylinker_command

__CCTOOLS_DEPRECATED
extern void swap_dylinker_command(
	struct dylinker_command *dyld,
	enum NXByteOrder target_byte_sex
)
deprecated

functionswap_fvmfile_command

__CCTOOLS_DEPRECATED
extern void swap_fvmfile_command(
	struct fvmfile_command *ff,
	enum NXByteOrder target_byte_order
)
deprecated

functionswap_thread_command

__CCTOOLS_DEPRECATED
extern void swap_thread_command(
	struct thread_command *ut,
	enum NXByteOrder target_byte_order
)
deprecated

functionswap_ident_command

__CCTOOLS_DEPRECATED
extern void swap_ident_command(
	struct ident_command *ident,
	enum NXByteOrder target_byte_order
)
deprecated

functionswap_routines_command

__CCTOOLS_DEPRECATED
extern void swap_routines_command(
	struct routines_command *r_cmd,
	enum NXByteOrder target_byte_sex
)
deprecated

functionswap_routines_command_64

__CCTOOLS_DEPRECATED
extern void swap_routines_command_64(
	struct routines_command_64 *r_cmd,
	enum NXByteOrder target_byte_sex
)
deprecated

functionswap_twolevel_hints_command

__CCTOOLS_DEPRECATED
extern void swap_twolevel_hints_command(
	struct twolevel_hints_command *hints_cmd,
	enum NXByteOrder target_byte_sex
)
deprecated

functionswap_prebind_cksum_command

__CCTOOLS_DEPRECATED
extern void swap_prebind_cksum_command(
	struct prebind_cksum_command *cksum_cmd,
	enum NXByteOrder target_byte_sex
)
deprecated

functionswap_uuid_command

__CCTOOLS_DEPRECATED
extern void swap_uuid_command(
	struct uuid_command *uuid_cmd,
	enum NXByteOrder target_byte_sex
)
deprecated

functionswap_linkedit_data_command

__CCTOOLS_DEPRECATED
extern void swap_linkedit_data_command(
	struct linkedit_data_command *ld,
	enum NXByteOrder target_byte_sex
)
deprecated

functionswap_version_min_command

__CCTOOLS_DEPRECATED
extern void swap_version_min_command(
	struct version_min_command *ver_cmd,
	enum NXByteOrder target_byte_sex
)
deprecated

functionswap_rpath_command

__CCTOOLS_DEPRECATED
extern void swap_rpath_command(
	struct rpath_command *rpath_cmd,
	enum NXByteOrder target_byte_sex
)
deprecated

functionswap_encryption_command

__CCTOOLS_DEPRECATED
extern void swap_encryption_command(
	struct encryption_info_command *ec,
	enum NXByteOrder target_byte_sex
)
deprecated

functionswap_encryption_command_64

__CCTOOLS_DEPRECATED
extern void swap_encryption_command_64(
	struct encryption_info_command_64 *ec,
	enum NXByteOrder target_byte_sex
)
deprecated

functionswap_linker_option_command

__CCTOOLS_DEPRECATED
extern void swap_linker_option_command(
	struct linker_option_command *lo,
	enum NXByteOrder target_byte_sex
)
deprecated

functionswap_dyld_info_command

__CCTOOLS_DEPRECATED
extern void swap_dyld_info_command(
	struct dyld_info_command *ed,
	enum NXByteOrder target_byte_sex
)
deprecated

functionswap_entry_point_command

__CCTOOLS_DEPRECATED
extern void swap_entry_point_command(
	struct entry_point_command *ep,
	enum NXByteOrder target_byte_sex
)
deprecated

functionswap_source_version_command

__CCTOOLS_DEPRECATED
extern void swap_source_version_command(
	struct source_version_command *sv,
	enum NXByteOrder target_byte_sex
)
deprecated

functionswap_note_command

__CCTOOLS_DEPRECATED
extern void swap_note_command(struct note_command *nc, enum NXByteOrder target_byte_sex)
deprecated

functionswap_build_version_command

__CCTOOLS_DEPRECATED
extern void swap_build_version_command(
	struct build_version_command *bv,
	enum NXByteOrder target_byte_sex
)
deprecated

functionswap_build_tool_version

__CCTOOLS_DEPRECATED
extern void swap_build_tool_version(
	struct build_tool_version *bt,
	uint32_t ntools,
	enum NXByteOrder target_byte_sex
)
deprecated

functionswap_prebind_cksum_command

__CCTOOLS_DEPRECATED
extern void swap_prebind_cksum_command(
	struct prebind_cksum_command *cksum_cmd,
	enum NXByteOrder target_byte_sex
)
deprecated

functionswap_uuid_command

__CCTOOLS_DEPRECATED
extern void swap_uuid_command(
	struct uuid_command *uuid_cmd,
	enum NXByteOrder target_byte_sex
)
deprecated

functionswap_twolevel_hint

__CCTOOLS_DEPRECATED
extern void swap_twolevel_hint(
	struct twolevel_hint *hints,
	uint32_t nhints,
	enum NXByteOrder target_byte_sex
)
deprecated

functionswap_fileset_entry_command

__CCTOOLS_DEPRECATED
extern void swap_fileset_entry_command(
	struct fileset_entry_command *lc,
	enum NXByteOrder target_byte_sex
)
deprecated

functionswap_nlist

__CCTOOLS_DEPRECATED
extern void swap_nlist(
	struct nlist *symbols,
	uint32_t nsymbols,
	enum NXByteOrder target_byte_order
)
deprecated

functionswap_nlist_64

__CCTOOLS_DEPRECATED
extern void swap_nlist_64(
	struct nlist_64 *symbols,
	uint32_t nsymbols,
	enum NXByteOrder target_byte_order
)
deprecated

functionswap_ranlib

__CCTOOLS_DEPRECATED
extern void swap_ranlib(
	struct ranlib *ranlibs,
	uint32_t nranlibs,
	enum NXByteOrder target_byte_order
)
deprecated

functionswap_ranlib_64

__CCTOOLS_DEPRECATED
extern void swap_ranlib_64(
	struct ranlib_64 *ranlibs,
	uint64_t nranlibs,
	enum NXByteOrder target_byte_order
)
deprecated

functionswap_relocation_info

__CCTOOLS_DEPRECATED
extern void swap_relocation_info(
	struct relocation_info *relocs,
	uint32_t nrelocs,
	enum NXByteOrder target_byte_order
)
deprecated

functionswap_indirect_symbols

__CCTOOLS_DEPRECATED
extern void swap_indirect_symbols(
	uint32_t *indirect_symbols,
	uint32_t nindirect_symbols,
	enum NXByteOrder target_byte_sex
)
deprecated

functionswap_dylib_reference

__CCTOOLS_DEPRECATED
extern void swap_dylib_reference(
	struct dylib_reference *refs,
	uint32_t nrefs,
	enum NXByteOrder target_byte_sex
)
deprecated

functionswap_dylib_module

__CCTOOLS_DEPRECATED
extern void swap_dylib_module(
	struct dylib_module *mods,
	uint32_t nmods,
	enum NXByteOrder target_byte_sex
)
deprecated

functionswap_dylib_module_64

__CCTOOLS_DEPRECATED
extern void swap_dylib_module_64(
	struct dylib_module_64 *mods,
	uint32_t nmods,
	enum NXByteOrder target_byte_sex
)
deprecated

functionswap_dylib_table_of_contents

__CCTOOLS_DEPRECATED
extern void swap_dylib_table_of_contents(
	struct dylib_table_of_contents *tocs,
	uint32_t ntocs,
	enum NXByteOrder target_byte_sex
)
deprecated