Functions
upb/python/convert.c File Reference
#include "python/convert.h"
#include "python/message.h"
#include "python/protobuf.h"
#include "upb/reflection.h"
#include "upb/util/compare.h"
Include dependency graph for upb/python/convert.c:

Go to the source code of this file.

Functions

bool PyUpb_Array_IsEqual (const upb_Array *arr1, const upb_Array *arr2, const upb_FieldDef *f)
 
static bool PyUpb_ArrayElem_IsEqual (const upb_Array *arr1, const upb_Array *arr2, size_t i, const upb_FieldDef *f)
 
static bool PyUpb_GetInt32 (PyObject *obj, int32_t *val)
 
static bool PyUpb_GetInt64 (PyObject *obj, int64_t *val)
 
static bool PyUpb_GetUint32 (PyObject *obj, uint32_t *val)
 
static bool PyUpb_GetUint64 (PyObject *obj, uint64_t *val)
 
bool PyUpb_Map_IsEqual (const upb_Map *map1, const upb_Map *map2, const upb_FieldDef *f)
 
static upb_MessageValue PyUpb_MaybeCopyString (const char *ptr, size_t size, upb_Arena *arena)
 
bool PyUpb_Message_IsEqual (const upb_Message *msg1, const upb_Message *msg2, const upb_MessageDef *m)
 
bool PyUpb_PyToUpb (PyObject *obj, const upb_FieldDef *f, upb_MessageValue *val, upb_Arena *arena)
 
static bool PyUpb_PyToUpbEnum (PyObject *obj, const upb_EnumDef *e, upb_MessageValue *val)
 
PyObject * PyUpb_UpbToPy (upb_MessageValue val, const upb_FieldDef *f, PyObject *arena)
 
bool PyUpb_ValueEq (upb_MessageValue val1, upb_MessageValue val2, const upb_FieldDef *f)
 

Function Documentation

◆ PyUpb_Array_IsEqual()

bool PyUpb_Array_IsEqual ( const upb_Array arr1,
const upb_Array arr2,
const upb_FieldDef f 
)

Definition at line 308 of file upb/python/convert.c.

◆ PyUpb_ArrayElem_IsEqual()

static bool PyUpb_ArrayElem_IsEqual ( const upb_Array arr1,
const upb_Array arr2,
size_t  i,
const upb_FieldDef f 
)
static

Definition at line 298 of file upb/python/convert.c.

◆ PyUpb_GetInt32()

static bool PyUpb_GetInt32 ( PyObject *  obj,
int32_t val 
)
static

Definition at line 115 of file upb/python/convert.c.

◆ PyUpb_GetInt64()

static bool PyUpb_GetInt64 ( PyObject *  obj,
int64_t val 
)
static

Definition at line 79 of file upb/python/convert.c.

◆ PyUpb_GetUint32()

static bool PyUpb_GetUint32 ( PyObject *  obj,
uint32_t val 
)
static

Definition at line 126 of file upb/python/convert.c.

◆ PyUpb_GetUint64()

static bool PyUpb_GetUint64 ( PyObject *  obj,
uint64_t val 
)
static

Definition at line 98 of file upb/python/convert.c.

◆ PyUpb_Map_IsEqual()

bool PyUpb_Map_IsEqual ( const upb_Map map1,
const upb_Map map2,
const upb_FieldDef f 
)

Definition at line 273 of file upb/python/convert.c.

◆ PyUpb_MaybeCopyString()

static upb_MessageValue PyUpb_MaybeCopyString ( const char *  ptr,
size_t  size,
upb_Arena arena 
)
static

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

◆ PyUpb_Message_IsEqual()

bool PyUpb_Message_IsEqual ( const upb_Message msg1,
const upb_Message msg2,
const upb_MessageDef m 
)

Definition at line 336 of file upb/python/convert.c.

◆ PyUpb_PyToUpb()

bool PyUpb_PyToUpb ( PyObject *  obj,
const upb_FieldDef f,
upb_MessageValue val,
upb_Arena arena 
)

Definition at line 179 of file upb/python/convert.c.

◆ PyUpb_PyToUpbEnum()

static bool PyUpb_PyToUpbEnum ( PyObject *  obj,
const upb_EnumDef e,
upb_MessageValue val 
)
static

Definition at line 153 of file upb/python/convert.c.

◆ PyUpb_UpbToPy()

PyObject* PyUpb_UpbToPy ( upb_MessageValue  val,
const upb_FieldDef f,
PyObject *  arena 
)

Definition at line 35 of file upb/python/convert.c.

◆ PyUpb_ValueEq()

bool PyUpb_ValueEq ( upb_MessageValue  val1,
upb_MessageValue  val2,
const upb_FieldDef f 
)

Definition at line 244 of file upb/python/convert.c.



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