def get_data(self):
		if not self.data_ptr:
			raise "no print"
		s = pyf.pyfp_print_get_data(self.data_ptr)
		if not len(s):
			raise "serialization failed"
		return s
Ejemplo n.º 2
0
    def data(self):
        """
		Return a serialized dataset representing the fprint.
		This data could be stored away, and later passed to the
		contructor of Fprint.
		"""
        if not self.data_ptr:
            raise "no print"
        s = pyf.pyfp_print_get_data(self.data_ptr)
        if not len(s):
            raise "serialization failed"
        return s
Ejemplo n.º 3
0
	def data(self):
		"""
		Return a serialized dataset representing the fprint.
		This data could be stored away, and later passed to the
		contructor of Fprint.
		"""
		if not self.data_ptr:
			raise "no print"
		s = pyf.pyfp_print_get_data(self.data_ptr)
		if not len(s):
			raise "serialization failed"
		return s