Class: DSP::DisassembleArguments

Inherits:
DSPBase
  • Object
show all
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

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

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

#instructionCountObject

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

#instructionOffsetObject

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

#memoryReferenceObject

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

#offsetObject

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

#resolveSymbolsObject

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