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.

Instance Method Summary collapse

Methods inherited from Section

#align, #attribute?, #attributes, #empty?, #flag?, #flags, #nreloc, #offset, #reloff, #reserved1, #reserved2, #section_name, #sectname, #segment_name, #segname, #type, #type?

Methods inherited from MachOStructure

bytesize, format, #initialize, new_from_bin

Constructor Details

This class inherits a constructor from MachO::MachOStructure

Instance Method Details

#addrInteger

Returns the memory address of the section.

Returns:

  • (Integer)

    the memory address of the section



200
# File 'lib/macho/sections.rb', line 200

field :addr, :uint64

#reserved3void

This method returns an undefined value.

Returns reserved.



206
# File 'lib/macho/sections.rb', line 206

field :reserved3, :uint32

#sizeInteger

Returns the size, in bytes, of the section.

Returns:

  • (Integer)

    the size, in bytes, of the section



203
# File 'lib/macho/sections.rb', line 203

field :size, :uint64

#to_hHash

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

Returns:



209
210
211
212
213
# File 'lib/macho/sections.rb', line 209

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