Class: MachO::Sections::Section64

Inherits:
Section show all
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

Attributes inherited from Section

#addr, #align, #flags, #nreloc, #offset, #reloff, #reserved1, #reserved2, #sectname, #segname, #size

Instance Method Summary collapse

Methods inherited from Section

#empty?, #flag?, #section_name, #segment_name

Methods inherited from MachOStructure

bytesize, new_from_bin

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

#reserved3void (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_hHash

Returns a hash representation of this MachO::Sections::Section64.

Returns:



200
201
202
203
204
# File 'lib/macho/sections.rb', line 200

def to_h
  {
    "reserved3" => reserved3,
  }.merge super
end