Class: Pliney::AppleCodeSignature::SuperBlob
- Defined in:
- lib/pliney/apple_code_signature.rb
Direct Known Subclasses
Defined Under Namespace
Classes: ContentInfo
Instance Attribute Summary collapse
-
#content_infos ⇒ Object
readonly
Returns the value of attribute content_infos.
-
#contents ⇒ Object
readonly
Returns the value of attribute contents.
Attributes inherited from Blob
Instance Method Summary collapse
Methods inherited from Blob
Constructor Details
This class inherits a constructor from Pliney::AppleCodeSignature::Blob
Instance Attribute Details
#content_infos ⇒ Object (readonly)
Returns the value of attribute content_infos.
62 63 64 |
# File 'lib/pliney/apple_code_signature.rb', line 62 def content_infos @content_infos end |
#contents ⇒ Object (readonly)
Returns the value of attribute contents.
62 63 64 |
# File 'lib/pliney/apple_code_signature.rb', line 62 def contents @contents end |
Instance Method Details
#parse ⇒ Object
63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/pliney/apple_code_signature.rb', line 63 def parse super() do ncontent = @input.read_uint32 @content_infos = Array.new(ncontent) { ContentInfo.new(@input.read_uint32, @input.read_uint32) } @contents = [] @content_infos.each do |ci| @input.pos = @base+ci.offset @contents << AppleCodeSignature.parse(@input) end end end |