Class: Indis::Section

Inherits:
Object
  • Object
show all
Defined in:
lib/indis-core/section.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attributesObject (readonly)

Returns the value of attribute attributes.



24
25
26
# File 'lib/indis-core/section.rb', line 24

def attributes
  @attributes
end

#bytesObject (readonly)

Returns the value of attribute bytes.



23
24
25
# File 'lib/indis-core/section.rb', line 23

def bytes
  @bytes
end

#nameObject (readonly)

Returns the value of attribute name.



22
23
24
# File 'lib/indis-core/section.rb', line 22

def name
  @name
end

#segmentObject (readonly)

Returns the value of attribute segment.



22
23
24
# File 'lib/indis-core/section.rb', line 22

def segment
  @segment
end

#typeObject (readonly)

Returns the value of attribute type.



24
25
26
# File 'lib/indis-core/section.rb', line 24

def type
  @type
end

#vmaddrObject (readonly)

Returns the value of attribute vmaddr.



23
24
25
# File 'lib/indis-core/section.rb', line 23

def vmaddr
  @vmaddr
end

#vmsizeObject (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_vmrangeObject



36
37
38
# File 'lib/indis-core/section.rb', line 36

def to_vmrange
  @vmaddr...(@vmaddr+@vmsize)
end