def declaration(self): """Return the associated Definition object.""" return _create_field_declaration( nbt._bt_ctf_get_decl_from_def(self._d), self.name, self.scope)
def type(self): """Return the type of a field or -1 if unknown.""" return nbt._bt_ctf_field_type(nbt._bt_ctf_get_decl_from_def(self._d))