コード例 #1
0
	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
コード例 #2
0
ファイル: pyfprint.py プロジェクト: ffsouza/pyfprint
    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
コード例 #3
0
ファイル: pyfprint.py プロジェクト: EmericB/pyfprint
	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