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

Method setMode

bindings/java/capstone/Capstone.java:485–491  ·  view source on GitHub ↗
(int opt)

Source from the content-addressed store, hash-verified

483
484 // set mode option at run-time
485 public void setMode(int opt) {
486 if (cs.cs_option(ns.csh, CS_OPT_MODE, new NativeLong(opt)) == CS_ERR_OK) {
487 this.mode = opt;
488 } else {
489 throw new RuntimeException("ERROR: Failed to set mode option");
490 }
491 }
492
493 // destructor automatically caled at destroyed time.
494 protected void finalize() {

Callers

nothing calls this directly

Calls 1

cs_optionMethod · 0.80

Tested by

no test coverage detected