-
-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathcore_foundation.h
More file actions
39 lines (32 loc) 路 843 Bytes
/
Copy pathcore_foundation.h
File metadata and controls
39 lines (32 loc) 路 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// core_foundation.h
// MachOKit
//
// Created by p-x9 on 2025/02/01
//
//
#ifndef core_foundation_h
#define core_foundation_h
#include <stdint.h>
// ref: https://github.com/apple-oss-distributions/CF/blob/dc54c6bb1c1e5e0b9486c1d26dd5bef110b20bf3/CFRuntime.h#L222-L228
typedef struct __CFRuntimeBase64 {
uint64_t _cfisa;
uint8_t _cfinfo[4];
uint32_t _rc;
} CFRuntimeBase64;
typedef struct __CFRuntimeBase32 {
uint32_t _cfisa;
uint8_t _cfinfo[4];
} CFRuntimeBase32;
// ref: https://github.com/apple-oss-distributions/CF/blob/dc54c6bb1c1e5e0b9486c1d26dd5bef110b20bf3/CFInternal.h#L332
struct CF_CONST_STRING64 {
CFRuntimeBase64 _base;
uint64_t _ptr;
uint32_t _length;
};
struct CF_CONST_STRING32 {
CFRuntimeBase32 _base;
uint32_t _ptr;
uint32_t _length;
};
#endif /* core_foundation_h */