Class: MachO::LoadCommands::SymsegCommand
- Inherits:
-
LoadCommand
- Object
- MachOStructure
- LoadCommand
- MachO::LoadCommands::SymsegCommand
- Defined in:
- lib/macho/load_commands.rb
Overview
An obsolete load command containing the offset and size of the (GNU style) symbol table information. Corresponds to LC_SYMSEG.
Constant Summary collapse
- FORMAT =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
"L=4".freeze
- SIZEOF =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
16
Instance Attribute Summary collapse
-
#offset ⇒ Fixnum
readonly
The offset to the symbol segment.
-
#size ⇒ Fixnum
readonly
The size of the symbol segment in bytes.
Attributes inherited from LoadCommand
Instance Method Summary collapse
-
#initialize(view, cmd, cmdsize, offset, size) ⇒ SymsegCommand
constructor
private
A new instance of SymsegCommand.
Methods inherited from LoadCommand
create, new_from_bin, #serializable?, #serialize, #to_s, #type
Methods inherited from MachOStructure
Constructor Details
#initialize(view, cmd, cmdsize, offset, size) ⇒ SymsegCommand
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 SymsegCommand.
1278 1279 1280 1281 1282 |
# File 'lib/macho/load_commands.rb', line 1278 def initialize(view, cmd, cmdsize, offset, size) super(view, cmd, cmdsize) @offset = offset @size = size end |
Instance Attribute Details
#offset ⇒ Fixnum (readonly)
Returns the offset to the symbol segment.
1264 1265 1266 |
# File 'lib/macho/load_commands.rb', line 1264 def offset @offset end |
#size ⇒ Fixnum (readonly)
Returns the size of the symbol segment in bytes.
1267 1268 1269 |
# File 'lib/macho/load_commands.rb', line 1267 def size @size end |