Class: Unicorn::Region
- Inherits:
-
Object
- Object
- Unicorn::Region
- 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.
-
#prot ⇒ Object
readonly
Returns the value of attribute prot.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
Instance Method Summary collapse
-
#initialize(addr, size, prot = UC_PROT_ALL) ⇒ Region
constructor
A new instance of Region.
Constructor Details
#initialize(addr, size, prot = UC_PROT_ALL) ⇒ Region
Returns a new instance of Region.
77 78 79 80 81 82 |
# File 'lib/unicorn/unicorn.rb', line 77 def initialize(addr, size, prot = UC_PROT_ALL) @addr = addr @size = size @prot = prot @end_addr = addr + size end |
Instance Attribute Details
#addr ⇒ Object (readonly)
Returns the value of attribute addr.
76 77 78 |
# File 'lib/unicorn/unicorn.rb', line 76 def addr @addr end |
#end_addr ⇒ Object (readonly)
Returns the value of attribute end_addr.
76 77 78 |
# File 'lib/unicorn/unicorn.rb', line 76 def end_addr @end_addr end |
#prot ⇒ Object (readonly)
Returns the value of attribute prot.
76 77 78 |
# File 'lib/unicorn/unicorn.rb', line 76 def prot @prot end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
76 77 78 |
# File 'lib/unicorn/unicorn.rb', line 76 def size @size end |