Class: MachO::LoadCommands::EncryptionInfoCommand64
- Inherits:
-
EncryptionInfoCommand
- Object
- MachOStructure
- LoadCommand
- EncryptionInfoCommand
- 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"
- 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
-
#pad ⇒ Integer
readonly
64-bit padding value.
Attributes inherited from EncryptionInfoCommand
#cryptid, #cryptoff, #cryptsize
Attributes inherited from LoadCommand
Instance Method Summary collapse
-
#initialize(view, cmd, cmdsize, cryptoff, cryptsize, cryptid, pad) ⇒ EncryptionInfoCommand64
constructor
private
A new instance of EncryptionInfoCommand64.
-
#to_h ⇒ Hash
A hash representation of this 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.
1287 1288 1289 1290 |
# File 'lib/macho/load_commands.rb', line 1287 def initialize(view, cmd, cmdsize, cryptoff, cryptsize, cryptid, pad) super(view, cmd, cmdsize, cryptoff, cryptsize, cryptid) @pad = pad end |
Instance Attribute Details
#pad ⇒ Integer (readonly)
Returns 64-bit padding value.
1276 1277 1278 |
# File 'lib/macho/load_commands.rb', line 1276 def pad @pad end |
Instance Method Details
#to_h ⇒ Hash
Returns a hash representation of this MachO::LoadCommands::EncryptionInfoCommand64.
1293 1294 1295 1296 1297 |
# File 'lib/macho/load_commands.rb', line 1293 def to_h { "pad" => pad, }.merge super end |