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.
1087 |
# File 'lib/macho/load_commands.rb', line 1087 field :cryptid, :uint32 |
#cryptoff ⇒ Integer
Returns the offset to the encrypted segment.
1081 |
# File 'lib/macho/load_commands.rb', line 1081 field :cryptoff, :uint32 |
#cryptsize ⇒ Integer
Returns the size of the encrypted segment.
1084 |
# File 'lib/macho/load_commands.rb', line 1084 field :cryptsize, :uint32 |
#to_h ⇒ Hash
Returns a hash representation of this MachO::LoadCommands::EncryptionInfoCommand.
1090 1091 1092 1093 1094 1095 1096 |
# File 'lib/macho/load_commands.rb', line 1090 def to_h { "cryptoff" => cryptoff, "cryptsize" => cryptsize, "cryptid" => cryptid, }.merge super end |