Class: MachO::EncryptionInfoCommand64
- Inherits:
-
LoadCommand
- Object
- MachOStructure
- LoadCommand
- MachO::EncryptionInfoCommand64
- 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_64.
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.
-
#pad ⇒ Fixnum
readonly
64-bit padding value.
Attributes inherited from LoadCommand
Instance Method Summary collapse
-
#initialize(offset, cmd, cmdsize, cryptoff, cryptsize, cryptid) ⇒ EncryptionInfoCommand64
constructor
A new instance of EncryptionInfoCommand64.
Methods inherited from LoadCommand
Methods inherited from MachOStructure
Constructor Details
#initialize(offset, cmd, cmdsize, cryptoff, cryptsize, cryptid) ⇒ EncryptionInfoCommand64
Returns a new instance of EncryptionInfoCommand64.
789 790 791 792 793 794 795 |
# File 'lib/macho/load_commands.rb', line 789 def initialize(offset, cmd, cmdsize, cryptoff, cryptsize, cryptid) super(offset, cmd, cmdsize) @cryptoff = cryptoff @cryptsize = cryptsize @cryptid = cryptid @pad = pad end |
Instance Attribute Details
#cryptid ⇒ Fixnum (readonly)
Returns the encryption system, or 0 if not encrypted yet.
780 781 782 |
# File 'lib/macho/load_commands.rb', line 780 def cryptid @cryptid end |
#cryptoff ⇒ Fixnum (readonly)
Returns the offset to the encrypted segment.
774 775 776 |
# File 'lib/macho/load_commands.rb', line 774 def cryptoff @cryptoff end |
#cryptsize ⇒ Fixnum (readonly)
Returns the size of the encrypted segment.
777 778 779 |
# File 'lib/macho/load_commands.rb', line 777 def cryptsize @cryptsize end |
#pad ⇒ Fixnum (readonly)
Returns 64-bit padding value.
783 784 785 |
# File 'lib/macho/load_commands.rb', line 783 def pad @pad end |