UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
syms_mach.c
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#ifndef SYMS_MACH_C
4#define SYMS_MACH_C
5
7//~ NOTE(allen): Generated
8
10
12//~ NOTE(allen): MACH Format Functions
13
14SYMS_API void
16 dst->magic = header32->magic;
17 dst->cputype = header32->cputype;
18 dst->cpusubtype = header32->cpusubtype;
19 dst->filetype = header32->filetype;
20 dst->ncmds = header32->ncmds;
21 dst->sizeofcmds = header32->sizeofcmds;
22 dst->flags = header32->flags;
23 dst->reserved = 0;
24}
25
26SYMS_API void
28 dst->n_strx = nlist32->n_strx;
29 dst->n_type = nlist32->n_type;
30 dst->n_sect = nlist32->n_sect;
31 dst->n_desc = nlist32->n_desc;
32 dst->n_value = nlist32->n_value;
33}
34
35SYMS_API void
37{
38 dst->cmd = seg32->cmd;
39 syms_memmove(&dst->segname[0], &seg32->segname[0], sizeof(seg32->segname));
40 dst->vmaddr = seg32->vmaddr;
41 dst->vmsize = seg32->vmsize;
42 dst->fileoff = seg32->fileoff;
43 dst->filesize = seg32->filesize;
44 dst->maxprot = seg32->maxprot;
45 dst->initprot = seg32->initprot;
46 dst->nsects = seg32->nsects;
47 dst->flags = seg32->flags;
48}
49
50SYMS_API void
52{
53 syms_memmove(&dst->sectname[0], &sect32->sectname[0], sizeof(sect32->sectname));
54 syms_memmove(&dst->segname[0], &sect32->segname[0], sizeof(sect32->segname));
55 dst->addr = sect32->addr;
56 dst->size = sect32->size;
57 dst->offset = sect32->offset;
58 dst->align = sect32->align;
59 dst->relocoff = sect32->relocoff;
60 dst->nreloc = sect32->nreloc;
61 dst->flags = sect32->flags;
62 dst->reserved1 = sect32->reserved1;
63 dst->reserved2 = sect32->reserved2;
64}
65
66#endif // SYMS_MACH_C
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
char * dst
Definition lz4.h:735
Definition syms_meta_mach.h:463
Definition syms_meta_mach.h:472
Definition syms_meta_mach.h:566
Definition syms_meta_mach.h:573
Definition syms_meta_mach.h:506
Definition syms_meta_mach.h:519
Definition syms_meta_mach.h:482
Definition syms_meta_mach.h:494
#define SYMS_API
Definition syms_base.h:29
#define syms_memmove
Definition syms_crt_overrides.h:65
SYMS_API void syms_mach_header64_from_header32(SYMS_MachHeader64 *dst, SYMS_MachHeader32 *header32)
Definition syms_mach.c:15
SYMS_API void syms_mach_segment64_from_segment32(SYMS_MachSegmentCommand64 *dst, SYMS_MachSegmentCommand32 *seg32)
Definition syms_mach.c:36
SYMS_API void syms_mach_nlist64_from_nlist32(SYMS_MachNList64 *dst, SYMS_MachNList32 *nlist32)
Definition syms_mach.c:27
SYMS_API void syms_mach_section64_from_section32(SYMS_MachSection64 *dst, SYMS_MachSection32 *sect32)
Definition syms_mach.c:51