struct
Cradare2::Model::Instruction
- Cradare2::Model::Instruction
- Struct
- Value
- Object
Overview
Represents a disassembled instruction from radare2 pdj or pdfj.
Included Modules
- JSON::Serializable
Defined in:
cradare2/models/instruction.crConstructors
- .new(pull : JSON::PullParser)
- .new(offset : UInt64 = 0_u64, size : Int32 = 0, opcode : String = "", disasm : String | Nil = nil, bytes : String | Nil = nil, type : String | Nil = nil, jump : UInt64 | Nil = nil, fail : UInt64 | Nil = nil, comment : String | Nil = nil, flags : Array(String) | Nil = nil)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
- #address : UInt64
- #bytes : String | Nil
- #comment : String | Nil
- #disasm : String | Nil
- #fail : UInt64 | Nil
- #family : String | Nil
- #flags : Array(String) | Nil
- #jump : UInt64 | Nil
- #offset : UInt64
- #opcode : String
- #raw_addr : UInt64 | Nil
- #raw_offset : UInt64 | Nil
- #size : Int32
-
#to_s : String
Human readable disassembly line
- #type : String | Nil
Constructor Detail
def self.new(offset : UInt64 = 0_u64, size : Int32 = 0, opcode : String = "", disasm : String | Nil = nil, bytes : String | Nil = nil, type : String | Nil = nil, jump : UInt64 | Nil = nil, fail : UInt64 | Nil = nil, comment : String | Nil = nil, flags : Array(String) | Nil = nil)
#