You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// This is taken from the [python bindings](https://github.com/capstone-engine/capstone/blob/5fb8a423d4455cade99b12912142fd3a0c10d957/bindings/python/capstone/__init__.py#L929)
17
+
/// taken from the [python bindings](https://github.com/capstone-engine/capstone/blob/5fb8a423d4455cade99b12912142fd3a0c10d957/bindings/python/capstone/__init__.py#L929)
18
18
constMAX_NUM_REGISTERS:usize = 64;
19
19
20
20
/// An instance of the capstone disassembler
@@ -103,11 +103,20 @@ impl Iterator for EmptyExtraModeIter {
103
103
}
104
104
}
105
105
106
+
#[derive(Clone,Debug,PartialEq,Eq,Hash)]
106
107
pubstructRegAccess{
107
108
pubread:Vec<RegId>,
108
109
pubwrite:Vec<RegId>,
109
110
}
110
111
112
+
implRegAccess{
113
+
/// Sort read and write fields
114
+
pubfnsort(&mutself){
115
+
self.read.sort_unstable();
116
+
self.write.sort_unstable();
117
+
}
118
+
}
119
+
111
120
implCapstone{
112
121
/// Create a new instance of the decompiler using the builder pattern interface.
113
122
/// This is the recommended interface to `Capstone`.
@@ -373,19 +382,20 @@ impl Capstone {
373
382
}
374
383
}
375
384
376
-
/// Get the registers are which are read to and written to
0 commit comments