Exemple #1
0
 public void EndDisassembly()
 {
     CapstoneAPI.cs_free(InstrBuffer, 1);
     InstrBuffer = IntPtr.Zero;
 }
Exemple #2
0
 public void StartDisassembly()
 {
     InstrBuffer = CapstoneAPI.cs_malloc(Handle);
 }
Exemple #3
0
 public void Close()
 {
     ThrowOnError(CapstoneAPI.cs_close(ref Handle));
 }
Exemple #4
0
 public void Open(cs_arch Architecture, cs_mode Mode)
 {
     ThrowOnError(CapstoneAPI.cs_open(Architecture, Mode, out Handle));
 }
Exemple #5
0
 public void SetOption(cs_opt_type Type, cs_opt_value Value)
 {
     ThrowOnError(CapstoneAPI.cs_option(Handle, Type, (uint)Value));
 }
Exemple #6
0
 public static void Version(out int Major, out int Minor)
 {
     CapstoneAPI.cs_version(out Major, out Minor);
 }