Capstone Result
Result type for Capstone operations.
Wraps Kotlin's standard Result type with Capstone-specific error handling.
Example usage:
val result: CapstoneResult<List<Instruction>> = engine.disassemble(code, 0x1000)
result.onSuccess { instructions ->
println("Disassembled ${instructions.size} instructions")
}.onFailure { error ->
println("Error: ${error.message}")
}Content copied to clipboard