Class: Relyze::ExecutableFileModel::DataBlock

Inherits:
BasicBlock
  • Object
show all
Defined in:
C:/Program Files/Relyze/lib/relyze/core/executable_file_model.rb

Instance Method Summary collapse

Methods inherited from BasicBlock

#add_reference, #adjacent, #code?, #color, #color=, #custom_name?, #data?, #datatype, #datatype=, #display_name, #join, #length, #name, #name=, #nearest_boundary, #next_boundary, #previous, #previous_boundary, #references, #remove_reference, #render, #reprocess, #rva, #segment, #set_datatype, #split, #to_s

Instance Method Details

#to_codeCodeBlock

Convert this block to a code block, if possible.

Returns:

  • (CodeBlock)

    the code block after converting this data block to code, or nil on failure.



1127
1128
1129
# File 'C:/Program Files/Relyze/lib/relyze/core/executable_file_model.rb', line 1127

def to_code
    return nil
end

#to_dataDataBlock

Convert this block to a data block.

Returns:

  • (DataBlock)

    returns self as this block is already data.



1134
1135
1136
# File 'C:/Program Files/Relyze/lib/relyze/core/executable_file_model.rb', line 1134

def to_data
    return self
end

#typeSymbol

Get this block type, :data

Returns:

  • (Symbol)

    Returns :data.



1120
1121
1122
# File 'C:/Program Files/Relyze/lib/relyze/core/executable_file_model.rb', line 1120

def type
    return :data
end