generated from Vector35/sample_plugin
-
Notifications
You must be signed in to change notification settings - Fork 3
/
binaryninja_types.py
53 lines (51 loc) · 879 Bytes
/
binaryninja_types.py
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
GO_KIND = ('golang_kind', """
enum golang_kind : uint8_t
{
INVALID = 0x0,
BOOL = 0x1,
INT = 0x2,
INT8 = 0x3,
INT16 = 0x4,
INT32 = 0x5,
INT64 = 0x6,
UINT = 0x7,
UINT8 = 0x8,
UINT16 = 0x9,
UINT32 = 0xA,
UINT64 = 0xB,
UINTPTR = 0xC,
FLOAT32 = 0xD,
FLOAT64 = 0xE,
COMPLEX64 = 0xF,
COMPLEX128 = 0x10,
ARRAY = 0x11,
CHAN = 0x12,
FUNC = 0x13,
INTERFACE = 0x14,
MAP = 0x15,
PTR = 0x16,
SLICE = 0x17,
STRING = 0x18,
STRUCT = 0x19,
UNSAFEPTR = 0x1A,
CHAN_DIRECTIFACE = 0x32,
FUNC_DIRECTIFACE = 0x33,
MAP_DIRECTIFACE = 0x35,
STRUCT_DIRECTIFACE = 0x39,
};""")
GOLANG_TYPE = ('golang_type', """
struct golang_type
{
int64_t size;
int64_t ptrdata;
uint32_t hash;
uint8_t tflag;
uint8_t align;
uint8_t fieldalign;
golang_kind kind;
int64_t equal_fn;
int64_t gcData;
int32_t nameoff;
int32_t typeoff;
};
""")