MCPcopy Create free account
hub / github.com/capstone-engine/capstone / CS

Interface CS

bindings/java/capstone/Capstone.java:296–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294 }
295
296 private interface CS extends Library {
297 public int cs_open(int arch, int mode, PointerByReference handle);
298 public NativeLong cs_disasm(Pointer handle, byte[] code, NativeLong code_len,
299 long addr, NativeLong count, PointerByReference insn);
300 public void cs_free(Pointer p, NativeLong count);
301 public int cs_close(PointerByReference handle);
302 public int cs_option(Pointer handle, int option, NativeLong optionValue);
303
304 public String cs_reg_name(Pointer csh, int id);
305 public int cs_op_count(Pointer csh, Pointer insn, int type);
306 public int cs_op_index(Pointer csh, Pointer insn, int type, int index);
307
308 public String cs_insn_name(Pointer csh, int id);
309 public String cs_group_name(Pointer csh, int id);
310 public byte cs_insn_group(Pointer csh, Pointer insn, int id);
311 public byte cs_reg_read(Pointer csh, Pointer insn, int id);
312 public byte cs_reg_write(Pointer csh, Pointer insn, int id);
313 public int cs_errno(Pointer csh);
314 public int cs_version(IntByReference major, IntByReference minor);
315 public boolean cs_support(int query);
316 public String cs_strerror(int code);
317 public int cs_regs_access(Pointer handle, Pointer insn, Pointer regs_read, ByteByReference regs_read_count, Pointer regs_write, ByteByReference regs_write_count);
318 }
319
320 // Capstone API version
321 public static final int CS_API_MAJOR = 5;

Callers 55

cs_disasm_quickFunction · 0.80
cs_disasm_liteFunction · 0.80
__init__Method · 0.80
CapstoneMethod · 0.80
cs_disasm_quickFunction · 0.80
cs_disasm_liteFunction · 0.80
disasmMethod · 0.80
disasm_liteMethod · 0.80
disasmMethod · 0.80
cs_disasm_quickFunction · 0.80
cs_disasm_liteFunction · 0.80
disasmMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected