Class: DSP::DisassembleArguments
- Defined in:
- lib/dsp/dsp_protocol.rb
Overview
interface DisassembleArguments {
/** Memory reference to the base location containing the instructions to disassemble. */
memoryReference: string;
/** Optional offset (in bytes) to be applied to the reference location before disassembling. Can be negative. */
offset?: number;
/** Optional offset (in instructions) to be applied after the byte offset (if any) before disassembling. Can be negative. */
instructionOffset?: number;
/** Number of instructions to disassemble starting at the specified location and offset.
An adapter must return exactly this number of instructions - any unavailable instructions should be replaced with an implementation-defined 'invalid instruction' value.
*/
instructionCount: number;
/** If true, the adapter should attempt to resolve memory addresses and other values to symbolic names. */
resolveSymbols?: boolean;
}
Instance Attribute Summary collapse
-
#instructionCount ⇒ Object
type: string # type: number # type: number # type: number # type: boolean.
-
#instructionOffset ⇒ Object
type: string # type: number # type: number # type: number # type: boolean.
-
#memoryReference ⇒ Object
type: string # type: number # type: number # type: number # type: boolean.
-
#offset ⇒ Object
type: string # type: number # type: number # type: number # type: boolean.
-
#resolveSymbols ⇒ Object
type: string # type: number # type: number # type: number # type: boolean.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ DisassembleArguments
constructor
A new instance of DisassembleArguments.
Methods inherited from DSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ DisassembleArguments
Returns a new instance of DisassembleArguments.
3534 3535 3536 3537 |
# File 'lib/dsp/dsp_protocol.rb', line 3534 def initialize(initial_hash = nil) super @optional_method_names = %i[offset instructionOffset resolveSymbols] end |
Instance Attribute Details
#instructionCount ⇒ Object
type: string # type: number # type: number # type: number # type: boolean
3532 3533 3534 |
# File 'lib/dsp/dsp_protocol.rb', line 3532 def instructionCount @instructionCount end |
#instructionOffset ⇒ Object
type: string # type: number # type: number # type: number # type: boolean
3532 3533 3534 |
# File 'lib/dsp/dsp_protocol.rb', line 3532 def instructionOffset @instructionOffset end |
#memoryReference ⇒ Object
type: string # type: number # type: number # type: number # type: boolean
3532 3533 3534 |
# File 'lib/dsp/dsp_protocol.rb', line 3532 def memoryReference @memoryReference end |
#offset ⇒ Object
type: string # type: number # type: number # type: number # type: boolean
3532 3533 3534 |
# File 'lib/dsp/dsp_protocol.rb', line 3532 def offset @offset end |
#resolveSymbols ⇒ Object
type: string # type: number # type: number # type: number # type: boolean
3532 3533 3534 |
# File 'lib/dsp/dsp_protocol.rb', line 3532 def resolveSymbols @resolveSymbols end |
Instance Method Details
#from_h!(value) ⇒ Object
3539 3540 3541 3542 3543 3544 3545 3546 3547 |
# File 'lib/dsp/dsp_protocol.rb', line 3539 def from_h!(value) value = {} if value.nil? self.memoryReference = value['memoryReference'] self.offset = value['offset'] self.instructionOffset = value['instructionOffset'] self.instructionCount = value['instructionCount'] self.resolveSymbols = value['resolveSymbols'] # Unknown type self end |