Class: OdinFlex::MachO::LC_FUNCTION_STARTS
- Defined in:
- lib/odinflex/mach-o.rb
Direct Known Subclasses
Constant Summary collapse
- VALUE =
0x26
- SIZE =
dataoff
4 + # dataoff 4
Instance Attribute Summary collapse
-
#dataoff ⇒ Object
readonly
Returns the value of attribute dataoff.
-
#datasize ⇒ Object
readonly
Returns the value of attribute datasize.
Attributes inherited from Command
Class Method Summary collapse
-
.from_io(cmd, size, offset, io) ⇒ Object
datasize.
Instance Method Summary collapse
-
#initialize(cmd, size, dataoff, datasize) ⇒ LC_FUNCTION_STARTS
constructor
A new instance of LC_FUNCTION_STARTS.
Methods inherited from Command
Methods included from SectionTypes
#command?, #dysymtab?, #section?, #segment?, #symtab?
Constructor Details
#initialize(cmd, size, dataoff, datasize) ⇒ LC_FUNCTION_STARTS
Returns a new instance of LC_FUNCTION_STARTS.
113 114 115 116 117 |
# File 'lib/odinflex/mach-o.rb', line 113 def initialize cmd, size, dataoff, datasize super(cmd, size) @dataoff = dataoff @datasize = datasize end |
Instance Attribute Details
#dataoff ⇒ Object (readonly)
Returns the value of attribute dataoff.
111 112 113 |
# File 'lib/odinflex/mach-o.rb', line 111 def dataoff @dataoff end |
#datasize ⇒ Object (readonly)
Returns the value of attribute datasize.
111 112 113 |
# File 'lib/odinflex/mach-o.rb', line 111 def datasize @datasize end |
Class Method Details
.from_io(cmd, size, offset, io) ⇒ Object
datasize
107 108 109 |
# File 'lib/odinflex/mach-o.rb', line 107 def self.from_io cmd, size, offset, io new(cmd, size, *io.read(SIZE).unpack("LL")) end |