Classes | Functions | Variables
upb/python/protobuf.c File Reference
#include "python/protobuf.h"
#include "python/descriptor.h"
#include "python/descriptor_containers.h"
#include "python/descriptor_pool.h"
#include "python/extension_dict.h"
#include "python/map.h"
#include "python/message.h"
#include "python/repeated.h"
Include dependency graph for upb/python/protobuf.c:

Go to the source code of this file.

Classes

struct  PyUpb_Arena
 
struct  PyUpb_WeakMap
 

Functions

PyTypeObject * AddObject (PyObject *m, const char *name, PyType_Spec *spec)
 
PyMODINIT_FUNC PyInit__message (void)
 
PyTypeObject * PyUpb_AddClass (PyObject *m, PyType_Spec *spec)
 
PyTypeObject * PyUpb_AddClassWithBases (PyObject *m, PyType_Spec *spec, PyObject *bases)
 
static void PyUpb_Arena_Dealloc (PyObject *self)
 
upb_ArenaPyUpb_Arena_Get (PyObject *arena)
 
PyObject * PyUpb_Arena_New (void)
 
PyObject * PyUpb_Forbidden_New (PyObject *cls, PyObject *args, PyObject *kwds)
 
static const char * PyUpb_GetClassName (PyType_Spec *spec)
 
const char * PyUpb_GetStrData (PyObject *obj)
 
PyObject * PyUpb_GetWktBases (PyUpb_ModuleState *state)
 
static bool PyUpb_InitArena (PyObject *m)
 
static void PyUpb_ModuleDealloc (void *module)
 
PyUpb_ModuleStatePyUpb_ModuleState_Get (void)
 
PyUpb_ModuleStatePyUpb_ModuleState_GetFromModule (PyObject *module)
 
PyUpb_ModuleStatePyUpb_ModuleState_MaybeGet (void)
 
void PyUpb_ObjCache_Add (const void *key, PyObject *py_obj)
 
void PyUpb_ObjCache_Delete (const void *key)
 
PyObject * PyUpb_ObjCache_Get (const void *key)
 
PyUpb_WeakMapPyUpb_ObjCache_Instance (void)
 
PyObject * PyUpb_SetAllowOversizeProtos (PyObject *m, PyObject *arg)
 
const char * PyUpb_VerifyStrData (PyObject *obj)
 
void PyUpb_WeakMap_Add (PyUpb_WeakMap *map, const void *key, PyObject *py_obj)
 
void PyUpb_WeakMap_Delete (PyUpb_WeakMap *map, const void *key)
 
void PyUpb_WeakMap_DeleteIter (PyUpb_WeakMap *map, intptr_t *iter)
 
void PyUpb_WeakMap_Free (PyUpb_WeakMap *map)
 
PyObject * PyUpb_WeakMap_Get (PyUpb_WeakMap *map, const void *key)
 
uintptr_t PyUpb_WeakMap_GetKey (const void *key)
 
PyUpb_WeakMapPyUpb_WeakMap_New (void)
 
bool PyUpb_WeakMap_Next (PyUpb_WeakMap *map, const void **key, PyObject **obj, intptr_t *iter)
 
void PyUpb_WeakMap_TryDelete (PyUpb_WeakMap *map, const void *key)
 

Variables

static struct PyModuleDef module_def
 
static PyType_Slot PyUpb_Arena_Slots []
 
static PyType_Spec PyUpb_Arena_Spec
 
static PyMethodDef PyUpb_ModuleMethods []
 

Function Documentation

◆ AddObject()

PyTypeObject* AddObject ( PyObject *  m,
const char *  name,
PyType_Spec *  spec 
)

Definition at line 258 of file upb/python/protobuf.c.

◆ PyInit__message()

PyMODINIT_FUNC PyInit__message ( void  )

Definition at line 324 of file upb/python/protobuf.c.

◆ PyUpb_AddClass()

PyTypeObject* PyUpb_AddClass ( PyObject *  m,
PyType_Spec *  spec 
)

Definition at line 274 of file upb/python/protobuf.c.

◆ PyUpb_AddClassWithBases()

PyTypeObject* PyUpb_AddClassWithBases ( PyObject *  m,
PyType_Spec *  spec,
PyObject *  bases 
)

Definition at line 284 of file upb/python/protobuf.c.

◆ PyUpb_Arena_Dealloc()

static void PyUpb_Arena_Dealloc ( PyObject *  self)
static

Definition at line 226 of file upb/python/protobuf.c.

◆ PyUpb_Arena_Get()

upb_Arena* PyUpb_Arena_Get ( PyObject *  arena)

Definition at line 231 of file upb/python/protobuf.c.

◆ PyUpb_Arena_New()

PyObject* PyUpb_Arena_New ( void  )

Definition at line 219 of file upb/python/protobuf.c.

◆ PyUpb_Forbidden_New()

PyObject* PyUpb_Forbidden_New ( PyObject *  cls,
PyObject *  args,
PyObject *  kwds 
)

Definition at line 312 of file upb/python/protobuf.c.

◆ PyUpb_GetClassName()

static const char* PyUpb_GetClassName ( PyType_Spec *  spec)
static

Definition at line 264 of file upb/python/protobuf.c.

◆ PyUpb_GetStrData()

const char* PyUpb_GetStrData ( PyObject *  obj)

Definition at line 295 of file upb/python/protobuf.c.

◆ PyUpb_GetWktBases()

PyObject* PyUpb_GetWktBases ( PyUpb_ModuleState state)

Definition at line 95 of file upb/python/protobuf.c.

◆ PyUpb_InitArena()

static bool PyUpb_InitArena ( PyObject *  m)
static

Definition at line 248 of file upb/python/protobuf.c.

◆ PyUpb_ModuleDealloc()

static void PyUpb_ModuleDealloc ( void *  module)
static

Definition at line 38 of file upb/python/protobuf.c.

◆ PyUpb_ModuleState_Get()

PyUpb_ModuleState* PyUpb_ModuleState_Get ( void  )

Definition at line 89 of file upb/python/protobuf.c.

◆ PyUpb_ModuleState_GetFromModule()

PyUpb_ModuleState* PyUpb_ModuleState_GetFromModule ( PyObject *  module)

Definition at line 82 of file upb/python/protobuf.c.

◆ PyUpb_ModuleState_MaybeGet()

PyUpb_ModuleState* PyUpb_ModuleState_MaybeGet ( void  )

Definition at line 77 of file upb/python/protobuf.c.

◆ PyUpb_ObjCache_Add()

void PyUpb_ObjCache_Add ( const void *  key,
PyObject *  py_obj 
)

Definition at line 190 of file upb/python/protobuf.c.

◆ PyUpb_ObjCache_Delete()

void PyUpb_ObjCache_Delete ( const void *  key)

Definition at line 194 of file upb/python/protobuf.c.

◆ PyUpb_ObjCache_Get()

PyObject* PyUpb_ObjCache_Get ( const void *  key)

Definition at line 206 of file upb/python/protobuf.c.

◆ PyUpb_ObjCache_Instance()

PyUpb_WeakMap* PyUpb_ObjCache_Instance ( void  )

Definition at line 185 of file upb/python/protobuf.c.

◆ PyUpb_SetAllowOversizeProtos()

PyObject* PyUpb_SetAllowOversizeProtos ( PyObject *  m,
PyObject *  arg 
)

Definition at line 46 of file upb/python/protobuf.c.

◆ PyUpb_VerifyStrData()

const char* PyUpb_VerifyStrData ( PyObject *  obj)

Definition at line 305 of file upb/python/protobuf.c.

◆ PyUpb_WeakMap_Add()

void PyUpb_WeakMap_Add ( PyUpb_WeakMap map,
const void *  key,
PyObject *  py_obj 
)

Definition at line 139 of file upb/python/protobuf.c.

◆ PyUpb_WeakMap_Delete()

void PyUpb_WeakMap_Delete ( PyUpb_WeakMap map,
const void *  key 
)

Definition at line 144 of file upb/python/protobuf.c.

◆ PyUpb_WeakMap_DeleteIter()

void PyUpb_WeakMap_DeleteIter ( PyUpb_WeakMap map,
intptr_t iter 
)

Definition at line 177 of file upb/python/protobuf.c.

◆ PyUpb_WeakMap_Free()

void PyUpb_WeakMap_Free ( PyUpb_WeakMap map)

Definition at line 131 of file upb/python/protobuf.c.

◆ PyUpb_WeakMap_Get()

PyObject* PyUpb_WeakMap_Get ( PyUpb_WeakMap map,
const void *  key 
)

Definition at line 156 of file upb/python/protobuf.c.

◆ PyUpb_WeakMap_GetKey()

uintptr_t PyUpb_WeakMap_GetKey ( const void *  key)

Definition at line 133 of file upb/python/protobuf.c.

◆ PyUpb_WeakMap_New()

PyUpb_WeakMap* PyUpb_WeakMap_New ( void  )

Definition at line 123 of file upb/python/protobuf.c.

◆ PyUpb_WeakMap_Next()

bool PyUpb_WeakMap_Next ( PyUpb_WeakMap map,
const void **  key,
PyObject **  obj,
intptr_t iter 
)

Definition at line 167 of file upb/python/protobuf.c.

◆ PyUpb_WeakMap_TryDelete()

void PyUpb_WeakMap_TryDelete ( PyUpb_WeakMap map,
const void *  key 
)

Definition at line 152 of file upb/python/protobuf.c.

Variable Documentation

◆ module_def

struct PyModuleDef module_def
static
Initial value:
= {PyModuleDef_HEAD_INIT,
"Protobuf Module",
NULL,
NULL,
NULL,

Definition at line 63 of file upb/python/protobuf.c.

◆ PyUpb_Arena_Slots

PyType_Slot PyUpb_Arena_Slots[]
static
Initial value:
= {
{Py_tp_dealloc, PyUpb_Arena_Dealloc},
{0, NULL},
}

Definition at line 235 of file upb/python/protobuf.c.

◆ PyUpb_Arena_Spec

PyType_Spec PyUpb_Arena_Spec
static
Initial value:
= {
sizeof(PyUpb_Arena),
0,
Py_TPFLAGS_DEFAULT,
}

Definition at line 240 of file upb/python/protobuf.c.

◆ PyUpb_ModuleMethods

PyMethodDef PyUpb_ModuleMethods[]
static
Initial value:
= {
{"SetAllowOversizeProtos", PyUpb_SetAllowOversizeProtos, METH_O,
"Enable/disable oversize proto parsing."},
{NULL, NULL}}

Definition at line 58 of file upb/python/protobuf.c.

PyUpb_SetAllowOversizeProtos
PyObject * PyUpb_SetAllowOversizeProtos(PyObject *m, PyObject *arg)
Definition: upb/python/protobuf.c:46
PyUpb_Arena
Definition: upb/python/protobuf.c:214
PyUpb_Arena_Slots
static PyType_Slot PyUpb_Arena_Slots[]
Definition: upb/python/protobuf.c:235
PyUpb_ModuleMethods
static PyMethodDef PyUpb_ModuleMethods[]
Definition: upb/python/protobuf.c:58
PyUpb_Arena_Dealloc
static void PyUpb_Arena_Dealloc(PyObject *self)
Definition: upb/python/protobuf.c:226
PYUPB_MODULE_NAME
#define PYUPB_MODULE_NAME
Definition: upb/python/protobuf.h:43
PyUpb_ModuleState
Definition: upb/python/protobuf.h:66
PyUpb_ModuleDealloc
static void PyUpb_ModuleDealloc(void *module)
Definition: upb/python/protobuf.c:38


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:27