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.



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

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.



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

def to_data
    return self
end

#typeSymbol

Get this block type, :data

Returns:

  • (Symbol)

    Returns :data.



1115
1116
1117
# File 'C:/Program Files/Relyze/lib/relyze/core/executable_file_model.rb', line 1115

def type
    return :data
end