Class: Indis::Section
- Inherits:
-
Object
- Object
- Indis::Section
- Defined in:
- lib/indis-core/section.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#bytes ⇒ Object
readonly
Returns the value of attribute bytes.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#segment ⇒ Object
readonly
Returns the value of attribute segment.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#vmaddr ⇒ Object
readonly
Returns the value of attribute vmaddr.
-
#vmsize ⇒ Object
readonly
Returns the value of attribute vmsize.
Instance Method Summary collapse
-
#initialize(seg, name, vmaddr, vmsize, iooff, type, attrs) ⇒ Section
constructor
A new instance of Section.
- #to_vmrange ⇒ Object
Constructor Details
#initialize(seg, name, vmaddr, vmsize, iooff, type, attrs) ⇒ Section
Returns a new instance of Section.
26 27 28 29 30 31 32 33 34 |
# File 'lib/indis-core/section.rb', line 26 def initialize(seg, name, vmaddr, vmsize, iooff, type, attrs) @segment = seg @name = name @vmaddr = vmaddr @vmsize = vmsize @iooff = iooff @type = type @attributes = attrs end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
24 25 26 |
# File 'lib/indis-core/section.rb', line 24 def attributes @attributes end |
#bytes ⇒ Object (readonly)
Returns the value of attribute bytes.
23 24 25 |
# File 'lib/indis-core/section.rb', line 23 def bytes @bytes end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
22 23 24 |
# File 'lib/indis-core/section.rb', line 22 def name @name end |
#segment ⇒ Object (readonly)
Returns the value of attribute segment.
22 23 24 |
# File 'lib/indis-core/section.rb', line 22 def segment @segment end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
24 25 26 |
# File 'lib/indis-core/section.rb', line 24 def type @type end |
#vmaddr ⇒ Object (readonly)
Returns the value of attribute vmaddr.
23 24 25 |
# File 'lib/indis-core/section.rb', line 23 def vmaddr @vmaddr end |
#vmsize ⇒ Object (readonly)
Returns the value of attribute vmsize.
23 24 25 |
# File 'lib/indis-core/section.rb', line 23 def vmsize @vmsize end |
Instance Method Details
#to_vmrange ⇒ Object
36 37 38 |
# File 'lib/indis-core/section.rb', line 36 def to_vmrange @vmaddr...(@vmaddr+@vmsize) end |