Class: MachO::LoadCommands::EncryptionInfoCommand
- Inherits:
-
LoadCommand
- Object
- MachOStructure
- LoadCommand
- MachO::LoadCommands::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.
Direct Known Subclasses
Instance Method Summary collapse
-
#cryptid ⇒ Integer
The encryption system, or 0 if not encrypted yet.
-
#cryptoff ⇒ Integer
The offset to the encrypted segment.
-
#cryptsize ⇒ Integer
The size of the encrypted segment.
-
#to_h ⇒ Hash
A hash representation of this EncryptionInfoCommand.
Methods inherited from LoadCommand
#cmd, #cmdsize, create, new_from_bin, #offset, #serializable?, #serialize, #to_s, #type, #view
Methods inherited from MachOStructure
bytesize, format, #initialize, new_from_bin
Constructor Details
This class inherits a constructor from MachO::MachOStructure
Instance Method Details
#cryptid ⇒ Integer
Returns the encryption system, or 0 if not encrypted yet.
1132 |
# File 'lib/macho/load_commands.rb', line 1132 field :cryptid, :uint32 |
#cryptoff ⇒ Integer
Returns the offset to the encrypted segment.
1126 |
# File 'lib/macho/load_commands.rb', line 1126 field :cryptoff, :uint32 |
#cryptsize ⇒ Integer
Returns the size of the encrypted segment.
1129 |
# File 'lib/macho/load_commands.rb', line 1129 field :cryptsize, :uint32 |
#to_h ⇒ Hash
Returns a hash representation of this MachO::LoadCommands::EncryptionInfoCommand.
1135 1136 1137 1138 1139 1140 1141 |
# File 'lib/macho/load_commands.rb', line 1135 def to_h { "cryptoff" => cryptoff, "cryptsize" => cryptsize, "cryptid" => cryptid, }.merge super end |