class Pliney::AppleCodeSignature::Blob
Attributes
input[R]
magic[R]
size[R]
Public Class Methods
new(magic, data) { |self| ... }
click to toggle source
# File lib/pliney/apple_code_signature.rb, line 19 def initialize(magic, data) @magic = Magic.new(magic) @input = data.is_a?(StringStream)? data : StringStream.new(data) @base = @input.pos-4 yield self if block_given? end
Public Instance Methods
parse() { || ... }
click to toggle source
# File lib/pliney/apple_code_signature.rb, line 26 def parse if @input @size = input.read_uint32 yield end @input=nil return self end
Private Instance Methods
rest()
click to toggle source
# File lib/pliney/apple_code_signature.rb, line 36 def rest @input.read(size_left) end
size_left()
click to toggle source
# File lib/pliney/apple_code_signature.rb, line 40 def size_left @size-(@input.pos-@base) end