Class: MachO::EncryptionInfoCommand
- Inherits:
-
LoadCommand
- Object
- MachOStructure
- LoadCommand
- MachO::EncryptionInfoCommand
- Defined in:
- lib/macho/load_commands.rb
Overview
A load command representing the offset to and size of an encrypted segment. Corresponds to LC_ENCRYPTION_INFO.
Constant Summary collapse
- FORMAT =
"VVVVV"
- SIZEOF =
20
Instance Attribute Summary collapse
-
#cryptid ⇒ Fixnum
readonly
The encryption system, or 0 if not encrypted yet.
-
#cryptoff ⇒ Fixnum
readonly
The offset to the encrypted segment.
-
#cryptsize ⇒ Fixnum
readonly
The size of the encrypted segment.
Attributes inherited from LoadCommand
Instance Method Summary collapse
-
#initialize(raw_data, offset, cmd, cmdsize, cryptoff, cryptsize, cryptid) ⇒ EncryptionInfoCommand
constructor
private
A new instance of EncryptionInfoCommand.
Methods inherited from LoadCommand
Methods inherited from MachOStructure
Constructor Details
#initialize(raw_data, offset, cmd, cmdsize, cryptoff, cryptsize, cryptid) ⇒ EncryptionInfoCommand
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 EncryptionInfoCommand.
796 797 798 799 800 801 |
# File 'lib/macho/load_commands.rb', line 796 def initialize(raw_data, offset, cmd, cmdsize, cryptoff, cryptsize, cryptid) super(raw_data, offset, cmd, cmdsize) @cryptoff = cryptoff @cryptsize = cryptsize @cryptid = cryptid end |
Instance Attribute Details
#cryptid ⇒ Fixnum (readonly)
Returns the encryption system, or 0 if not encrypted yet.
790 791 792 |
# File 'lib/macho/load_commands.rb', line 790 def cryptid @cryptid end |
#cryptoff ⇒ Fixnum (readonly)
Returns the offset to the encrypted segment.
784 785 786 |
# File 'lib/macho/load_commands.rb', line 784 def cryptoff @cryptoff end |
#cryptsize ⇒ Fixnum (readonly)
Returns the size of the encrypted segment.
787 788 789 |
# File 'lib/macho/load_commands.rb', line 787 def cryptsize @cryptsize end |