node/lib/metasm/metasm/cpu/bpf/decode.rb
def decode_findopcode(edata)
		return if edata.ptr > edata.data.length-8
		di = DecodedInstruction.new self
		code = edata.data[edata.ptr, 2].unpack('v')[0]
		return di if di.opcode = @bin_lookaside[code]
	end
# tries to find the opcode encoded at edata.ptr
tries to find the opcode encoded at edata.ptr
tries to find the opcode encoded at edata . ptr
def decode_findopcode(edata)
		return if edata.ptr > edata.data.length-8
		di = DecodedInstruction.new self
		code = edata.data[edata.ptr, 2].unpack('v')[0]
		return di if di.opcode = @bin_lookaside[code]
	end
def decode_findopcode ( edata ) return if edata . ptr > edata . data . length - 8 di = DecodedInstruction . new self code = edata . data [ edata . ptr , 2 ] . unpack ( 'v' ) [ 0 ] return di if di . opcode = @bin_lookaside [ code ] end
tries to find the opcode encoded at edata.ptr
tries to find the opcode encoded at edata . ptr
edata