Class: MachO::Sections::Section64
- Inherits:
-
Section
- Object
- MachOStructure
- Section
- MachO::Sections::Section64
- Defined in:
- lib/macho/sections.rb
Overview
Represents a section of a segment for 64-bit architectures.
Constant Summary collapse
- FORMAT =
"Z16Z16Q=2L=8"
- SIZEOF =
80
Instance Attribute Summary collapse
-
#reserved3 ⇒ void
readonly
Reserved.
Attributes inherited from Section
#addr, #align, #flags, #nreloc, #offset, #reloff, #reserved1, #reserved2, #sectname, #segname, #size
Instance Method Summary collapse
-
#initialize(sectname, segname, addr, size, offset, align, reloff, nreloc, flags, reserved1, reserved2, reserved3) ⇒ Section64
constructor
private
A new instance of Section64.
-
#to_h ⇒ Hash
A hash representation of this Section64.
Methods inherited from Section
#empty?, #flag?, #section_name, #segment_name
Methods inherited from MachOStructure
Constructor Details
#initialize(sectname, segname, addr, size, offset, align, reloff, nreloc, flags, reserved1, reserved2, reserved3) ⇒ Section64
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Section64.
192 193 194 195 196 197 |
# File 'lib/macho/sections.rb', line 192 def initialize(sectname, segname, addr, size, offset, align, reloff, nreloc, flags, reserved1, reserved2, reserved3) super(sectname, segname, addr, size, offset, align, reloff, nreloc, flags, reserved1, reserved2) @reserved3 = reserved3 end |
Instance Attribute Details
#reserved3 ⇒ void (readonly)
This method returns an undefined value.
Returns reserved.
183 184 185 |
# File 'lib/macho/sections.rb', line 183 def reserved3 @reserved3 end |
Instance Method Details
#to_h ⇒ Hash
Returns a hash representation of this MachO::Sections::Section64.
200 201 202 203 204 |
# File 'lib/macho/sections.rb', line 200 def to_h { "reserved3" => reserved3, }.merge super end |