-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.go
53 lines (48 loc) · 1015 Bytes
/
types.go
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
// Copyright 2021 The Go Asm Authors
// SPDX-License-Identifier: BSD-3-Clause
package capstone
type CsDetail struct {
RegsRead [16]uint16
RegsReadCount uint8
RegsWrite [20]uint16
RegsWriteCount uint8
Groups [8]uint8
GroupsCount uint8
X86 CsX86
Arm64 CsArm64
Arm CsArm
M68k CsM68K
Mips CsMips
Ppc CsPpc
Sparc CsSparc
Sysz CsSysz
Xcore CsXcore
Tms320c64x CsTms320C64X
M680x CsM680X
Evm CsEvm
Mos65xx CsMos65Xx
_ [4]byte
Wasm CsWasm
Bpf CsBpf
Riscv CsRiscv
}
type CsInsn struct {
ID uint32
Address uint64
Size uint16
Bytes [24]uint8
Mnemonic [32]int8
Str [160]int8
Detail *CsDetail
}
type CsOptMem struct {
Malloc CsMallocT
Calloc CsCallocT
Realloc CsReallocT
Free CsFreeT
Vsnprintf CsVsnprintfT
}
type CsOptMnem struct {
ID uint32
Mnemonic *int8
}