Class: Relyze::FileModel::Value

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

Overview

A Value is the base class to describe all structure items in a model.

Direct Known Subclasses

Array, Structure

Instance Method Summary collapse

Instance Method Details

#colorInteger?

Get the color of this value as displayed in the GUI.

Returns:

  • (Integer, nil)

    The values color, or nil if not set.



147
148
149
# File 'C:/Program Files/Relyze/lib/relyze/core/file_model.rb', line 147

def color
    return nil
end

#color=(color) ⇒ Object

Set the color of this value as displayed in the GUI.

Parameters:

  • color (Integer, nil)

    The values color, or nil to clear the color.



154
155
156
# File 'C:/Program Files/Relyze/lib/relyze/core/file_model.rb', line 154

def color=( color )
    return color
end

#commentString

Get the comment for this value.

Returns:

  • (String)

    The values comment .



97
98
99
# File 'C:/Program Files/Relyze/lib/relyze/core/file_model.rb', line 97

def comment
    return nil
end

#comment=(comment) ⇒ String

Set the comment for this value.

Parameters:

  • comment (String)

    The values new comment.

Returns:

  • (String)

    The values new comment.



105
106
107
# File 'C:/Program Files/Relyze/lib/relyze/core/file_model.rb', line 105

def comment=( comment )
    return nil
end

#nameString

Get the name of this value.

Returns:

  • (String)

    The value name.



82
83
84
# File 'C:/Program Files/Relyze/lib/relyze/core/file_model.rb', line 82

def name
    return nil
end

#name=(name) ⇒ String

Set the name of this value.

Parameters:

  • name (String)

    The values new name.

Returns:

  • (String)

    The values new name.



90
91
92
# File 'C:/Program Files/Relyze/lib/relyze/core/file_model.rb', line 90

def name=( name )
    return nil
end

#offsetInteger

Get the file offset of this value.

Returns:

  • (Integer)

    The values file offset.



119
120
121
# File 'C:/Program Files/Relyze/lib/relyze/core/file_model.rb', line 119

def offset
    return 0
end

#sizeInteger

Get the byte size of this value.

Returns:



112
113
114
# File 'C:/Program Files/Relyze/lib/relyze/core/file_model.rb', line 112

def size
    return 0
end

#to_sString

Get the String representation of this value.

Returns:

  • (String)

    The string representation of this value.



126
127
128
# File 'C:/Program Files/Relyze/lib/relyze/core/file_model.rb', line 126

def to_s
    return ''
end

#typeSymbol

Get the type of this value.

Returns:

  • (Symbol)

    The type of value, either :blob, :boolean, :byte, :word, :dword, :qword, :ansi_string, :unicode_string, :guid, :structure, :rva_pointer, :va_pointer, :offset_pointer, :array or :flags.



133
134
135
# File 'C:/Program Files/Relyze/lib/relyze/core/file_model.rb', line 133

def type
    return nil
end

#valuetrue, ...

Get the raw value



140
141
142
# File 'C:/Program Files/Relyze/lib/relyze/core/file_model.rb', line 140

def value
    return nil
end
arget="_parent">yard 0.9.20 (ruby-2.6.5).