lib/metasm/metasm/exe_format/macho.rb
# decodes the Mach header from the current offset in self.encoded
decodes the Mach header from the current offset in self.encoded
decodes the Mach header from the current offset in self . encoded
def decode_header
		@header.decode self
		@header.ncmds.times { @commands << LoadCommand.decode(self) }
		@commands.each { |cmd|
			e = cmd.data
			case cmd.cmd
			when 'SEGMENT', 'SEGMENT_64'; @segments << e
			end
		}
	end
def decode_header @header . decode self @header . ncmds . times { @commands << LoadCommand . decode ( self ) } @commands . each { | cmd | e = cmd . data case cmd . cmd when 'SEGMENT' , 'SEGMENT_64' ; @segments << e end } end
decodes the Mach header from the current offset in self.encoded
decodes the Mach header from the current offset in self . encoded