Class: MachO::SegmentCommand64
- Inherits:
-
LoadCommand
- Object
- MachOStructure
- LoadCommand
- MachO::SegmentCommand64
- Defined in:
- lib/macho/load_commands.rb
Instance Attribute Summary collapse
-
#fileoff ⇒ Object
readonly
Returns the value of attribute fileoff.
-
#filesize ⇒ Object
readonly
Returns the value of attribute filesize.
-
#flags ⇒ Object
readonly
Returns the value of attribute flags.
-
#initprot ⇒ Object
readonly
Returns the value of attribute initprot.
-
#maxprot ⇒ Object
readonly
Returns the value of attribute maxprot.
-
#nsects ⇒ Object
readonly
Returns the value of attribute nsects.
-
#segname ⇒ Object
readonly
Returns the value of attribute segname.
-
#vmaddr ⇒ Object
readonly
Returns the value of attribute vmaddr.
-
#vmsize ⇒ Object
readonly
Returns the value of attribute vmsize.
Attributes inherited from LoadCommand
Instance Method Summary collapse
-
#initialize(offset, cmd, cmdsize, segname, vmaddr, vmsize, fileoff, filesize, maxprot, initprot, nsects, flags) ⇒ SegmentCommand64
constructor
A new instance of SegmentCommand64.
- #segment_name ⇒ Object
Methods inherited from LoadCommand
Methods inherited from MachOStructure
Constructor Details
#initialize(offset, cmd, cmdsize, segname, vmaddr, vmsize, fileoff, filesize, maxprot, initprot, nsects, flags) ⇒ SegmentCommand64
Returns a new instance of SegmentCommand64.
242 243 244 245 246 247 248 249 250 251 252 253 254 |
# File 'lib/macho/load_commands.rb', line 242 def initialize(offset, cmd, cmdsize, segname, vmaddr, vmsize, fileoff, filesize, maxprot, initprot, nsects, flags) super(offset, cmd, cmdsize) @segname = segname @vmaddr = vmaddr @vmsize = vmsize @fileoff = fileoff @filesize = filesize @maxprot = maxprot @initprot = initprot @nsects = nsects @flags = flags end |
Instance Attribute Details
#fileoff ⇒ Object (readonly)
Returns the value of attribute fileoff.
236 237 238 |
# File 'lib/macho/load_commands.rb', line 236 def fileoff @fileoff end |
#filesize ⇒ Object (readonly)
Returns the value of attribute filesize.
236 237 238 |
# File 'lib/macho/load_commands.rb', line 236 def filesize @filesize end |
#flags ⇒ Object (readonly)
Returns the value of attribute flags.
237 238 239 |
# File 'lib/macho/load_commands.rb', line 237 def flags @flags end |
#initprot ⇒ Object (readonly)
Returns the value of attribute initprot.
237 238 239 |
# File 'lib/macho/load_commands.rb', line 237 def initprot @initprot end |
#maxprot ⇒ Object (readonly)
Returns the value of attribute maxprot.
236 237 238 |
# File 'lib/macho/load_commands.rb', line 236 def maxprot @maxprot end |
#nsects ⇒ Object (readonly)
Returns the value of attribute nsects.
237 238 239 |
# File 'lib/macho/load_commands.rb', line 237 def nsects @nsects end |
#segname ⇒ Object (readonly)
Returns the value of attribute segname.
236 237 238 |
# File 'lib/macho/load_commands.rb', line 236 def segname @segname end |
#vmaddr ⇒ Object (readonly)
Returns the value of attribute vmaddr.
236 237 238 |
# File 'lib/macho/load_commands.rb', line 236 def vmaddr @vmaddr end |
#vmsize ⇒ Object (readonly)
Returns the value of attribute vmsize.
236 237 238 |
# File 'lib/macho/load_commands.rb', line 236 def vmsize @vmsize end |
Instance Method Details
#segment_name ⇒ Object
256 257 258 |
# File 'lib/macho/load_commands.rb', line 256 def segment_name @segname.delete("\x00") end |