Home
last modified time | relevance | path

Searched refs:py_descriptor (Results 1 – 3 of 3) sorted by relevance

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/pyext/
Ddescriptor_database.cc55 static bool GetFileDescriptorProto(PyObject* py_descriptor, in GetFileDescriptorProto() argument
57 if (py_descriptor == NULL) { in GetFileDescriptorProto()
67 if (py_descriptor == Py_None) { in GetFileDescriptorProto()
72 CMessage* message = reinterpret_cast<CMessage*>(py_descriptor); in GetFileDescriptorProto()
73 if (PyObject_TypeCheck(py_descriptor, &CMessage_Type) && in GetFileDescriptorProto()
84 PyObject_CallMethod(py_descriptor, "SerializeToString", NULL)); in GetFileDescriptorProto()
113 ScopedPyObjectPtr py_descriptor(PyObject_CallMethod( in FindFileByName() local
115 return GetFileDescriptorProto(py_descriptor.get(), output); in FindFileByName()
121 ScopedPyObjectPtr py_descriptor( in FindFileContainingSymbol() local
124 return GetFileDescriptorProto(py_descriptor.get(), output); in FindFileContainingSymbol()
[all …]
Ddescriptor.cc335 PyBaseDescriptor* py_descriptor = PyObject_New( in NewInternedDescriptor() local
337 if (py_descriptor == NULL) { in NewInternedDescriptor()
340 py_descriptor->descriptor = descriptor; in NewInternedDescriptor()
344 std::make_pair(descriptor, reinterpret_cast<PyObject*>(py_descriptor))); in NewInternedDescriptor()
351 PyObject_Del(py_descriptor); in NewInternedDescriptor()
355 py_descriptor->pool = pool; in NewInternedDescriptor()
360 return reinterpret_cast<PyObject*>(py_descriptor); in NewInternedDescriptor()
1405 PyObject* py_descriptor = descriptor::NewInternedDescriptor( in PyFileDescriptor_FromDescriptorWithSerializedPb() local
1407 if (py_descriptor == NULL) { in PyFileDescriptor_FromDescriptorWithSerializedPb()
1412 reinterpret_cast<PyFileDescriptor*>(py_descriptor); in PyFileDescriptor_FromDescriptorWithSerializedPb()
[all …]
Dmessage.cc236 PyObject* py_descriptor = PyDict_GetItem(dict, kDESCRIPTOR); in New() local
237 if (py_descriptor == NULL) { in New()
241 if (!PyObject_TypeCheck(py_descriptor, &PyMessageDescriptor_Type)) { in New()
243 py_descriptor->ob_type->tp_name); in New()
251 PyMessageDescriptor_AsDescriptor(py_descriptor); in New()
294 PyMessageDescriptor_AsDescriptor(py_descriptor); in New()
298 Py_INCREF(py_descriptor); in New()
299 newtype->py_message_descriptor = py_descriptor; in New()