Class: Pliney::MachO::CommonEncryptionInfoReader

Inherits:
CommonLCReader show all
Defined in:
lib/pliney/macho.rb

Instance Attribute Summary collapse

Attributes inherited from CommonLCReader

#cmd, #cmdsize

Attributes inherited from Reader

#fh, #startpos

Instance Method Summary collapse

Methods inherited from CommonLCReader

#resolve_type

Methods inherited from Reader

#initialize, parse, #rewind

Constructor Details

This class inherits a constructor from Pliney::MachO::Reader

Instance Attribute Details

#cryptidObject (readonly)

Returns the value of attribute cryptid.



483
484
485
# File 'lib/pliney/macho.rb', line 483

def cryptid
  @cryptid
end

#cryptoffObject (readonly)

Returns the value of attribute cryptoff.



483
484
485
# File 'lib/pliney/macho.rb', line 483

def cryptoff
  @cryptoff
end

#cryptsizeObject (readonly)

Returns the value of attribute cryptsize.



483
484
485
# File 'lib/pliney/macho.rb', line 483

def cryptsize
  @cryptsize
end

Instance Method Details

#parseObject



485
486
487
488
489
490
# File 'lib/pliney/macho.rb', line 485

def parse()
    super()
    @cryptoff = @fh.read_uint32le
    @cryptsize = @fh.read_uint32le
    @cryptid = @fh.read_uint32le
end