Class: MachO::SymtabCommand

Inherits:
LoadCommand show all
Defined in:
lib/macho/load_commands.rb

Instance Attribute Summary collapse

Attributes inherited from LoadCommand

#cmd, #cmdsize, #offset

Instance Method Summary collapse

Methods inherited from LoadCommand

new_from_bin, #to_s

Methods inherited from MachOStructure

bytesize, new_from_bin

Constructor Details

#initialize(offset, cmd, cmdsize, symoff, nsyms, stroff, strsize) ⇒ SymtabCommand

Returns a new instance of SymtabCommand.



401
402
403
404
405
406
407
# File 'lib/macho/load_commands.rb', line 401

def initialize(offset, cmd, cmdsize, symoff, nsyms, stroff, strsize)
	super(offset, cmd, cmdsize)
	@symoff = symoff
	@nsyms = nsyms
	@stroff = stroff
	@strsize = strsize
end

Instance Attribute Details

#nsymsObject (readonly)

Returns the value of attribute nsyms.



396
397
398
# File 'lib/macho/load_commands.rb', line 396

def nsyms
  @nsyms
end

#stroffObject (readonly)

Returns the value of attribute stroff.



396
397
398
# File 'lib/macho/load_commands.rb', line 396

def stroff
  @stroff
end

#strsizeObject (readonly)

Returns the value of attribute strsize.



396
397
398
# File 'lib/macho/load_commands.rb', line 396

def strsize
  @strsize
end

#symoffObject (readonly)

Returns the value of attribute symoff.



396
397
398
# File 'lib/macho/load_commands.rb', line 396

def symoff
  @symoff
end