Class: Unicorn::Section
- Inherits:
-
Object
- Object
- Unicorn::Section
- Defined in:
- lib/unicorn/unicorn.rb
Instance Attribute Summary collapse
-
#addr ⇒ Object
readonly
Returns the value of attribute addr.
-
#end_addr ⇒ Object
readonly
Returns the value of attribute end_addr.
-
#ptr ⇒ Object
readonly
Returns the value of attribute ptr.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
Instance Method Summary collapse
-
#initialize(addr, ffi_ptr, size) ⇒ Section
constructor
A new instance of Section.
Constructor Details
#initialize(addr, ffi_ptr, size) ⇒ Section
Returns a new instance of Section.
94 95 96 97 98 99 |
# File 'lib/unicorn/unicorn.rb', line 94 def initialize(addr, ffi_ptr, size) @addr = addr @ptr = ffi_ptr @size = size @end_addr = addr + size end |
Instance Attribute Details
#addr ⇒ Object (readonly)
Returns the value of attribute addr.
93 94 95 |
# File 'lib/unicorn/unicorn.rb', line 93 def addr @addr end |
#end_addr ⇒ Object (readonly)
Returns the value of attribute end_addr.
93 94 95 |
# File 'lib/unicorn/unicorn.rb', line 93 def end_addr @end_addr end |
#ptr ⇒ Object (readonly)
Returns the value of attribute ptr.
93 94 95 |
# File 'lib/unicorn/unicorn.rb', line 93 def ptr @ptr end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
93 94 95 |
# File 'lib/unicorn/unicorn.rb', line 93 def size @size end |