Class: OdinFlex::MachO::LC_BUILD_VERSION
- Defined in:
- lib/odinflex/mach-o.rb
Constant Summary collapse
- VALUE =
0x32
- SIZE =
platform
4 + # platform 4 + # minos 4 + # sdk 4
Instance Attribute Summary collapse
-
#minos ⇒ Object
readonly
Returns the value of attribute minos.
-
#ntools ⇒ Object
readonly
Returns the value of attribute ntools.
-
#platform ⇒ Object
readonly
Returns the value of attribute platform.
-
#sdk ⇒ Object
readonly
Returns the value of attribute sdk.
Attributes inherited from Command
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cmd, size, platform, minos, sdk, ntools) ⇒ LC_BUILD_VERSION
constructor
A new instance of LC_BUILD_VERSION.
Methods inherited from Command
Methods included from SectionTypes
#command?, #dysymtab?, #section?, #segment?, #symtab?
Constructor Details
#initialize(cmd, size, platform, minos, sdk, ntools) ⇒ LC_BUILD_VERSION
Returns a new instance of LC_BUILD_VERSION.
223 224 225 226 227 228 229 |
# File 'lib/odinflex/mach-o.rb', line 223 def initialize cmd, size, platform, minos, sdk, ntools super(cmd, size) @platform = platform @minos = minos @sdk = sdk @ntools = ntools end |
Instance Attribute Details
#minos ⇒ Object (readonly)
Returns the value of attribute minos.
221 222 223 |
# File 'lib/odinflex/mach-o.rb', line 221 def minos @minos end |
#ntools ⇒ Object (readonly)
Returns the value of attribute ntools.
221 222 223 |
# File 'lib/odinflex/mach-o.rb', line 221 def ntools @ntools end |
#platform ⇒ Object (readonly)
Returns the value of attribute platform.
221 222 223 |
# File 'lib/odinflex/mach-o.rb', line 221 def platform @platform end |
#sdk ⇒ Object (readonly)
Returns the value of attribute sdk.
221 222 223 |
# File 'lib/odinflex/mach-o.rb', line 221 def sdk @sdk end |
Class Method Details
.from_io(cmd, size, offset, io) ⇒ Object
ntools
217 218 219 |
# File 'lib/odinflex/mach-o.rb', line 217 def self.from_io cmd, size, offset, io new(cmd, size, *io.read(SIZE).unpack('L4')) end |