Class: MachO::LoadCommands::EncryptionInfoCommand64
- Inherits:
-
LoadCommand
- Object
- MachOStructure
- LoadCommand
- MachO::LoadCommands::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.
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=6".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.
24
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(view, cmd, cmdsize, cryptoff, cryptsize, cryptid, pad) ⇒ EncryptionInfoCommand64
constructor
private
A new instance of EncryptionInfoCommand64.
Methods inherited from LoadCommand
create, new_from_bin, #offset, #serializable?, #serialize, #to_s, #type
Methods inherited from MachOStructure
Constructor Details
#initialize(view, cmd, cmdsize, cryptoff, cryptsize, cryptid, pad) ⇒ EncryptionInfoCommand64
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 EncryptionInfoCommand64.
1065 1066 1067 1068 1069 1070 1071 |
# File 'lib/macho/load_commands.rb', line 1065 def initialize(view, cmd, cmdsize, cryptoff, cryptsize, cryptid, pad) super(view, 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.
1051 1052 1053 |
# File 'lib/macho/load_commands.rb', line 1051 def cryptid @cryptid end |
#cryptoff ⇒ Fixnum (readonly)
Returns the offset to the encrypted segment.
1045 1046 1047 |
# File 'lib/macho/load_commands.rb', line 1045 def cryptoff @cryptoff end |
#cryptsize ⇒ Fixnum (readonly)
Returns the size of the encrypted segment.
1048 1049 1050 |
# File 'lib/macho/load_commands.rb', line 1048 def cryptsize @cryptsize end |
#pad ⇒ Fixnum (readonly)
Returns 64-bit padding value.
1054 1055 1056 |
# File 'lib/macho/load_commands.rb', line 1054 def pad @pad end |