Classes | Macros | Enumerations | Functions | Variables
msg_internal.h File Reference
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "upb/msg.h"
#include "upb/table_internal.h"
#include "upb/upb.h"
#include "upb/port_def.inc"
#include "upb/port_undef.inc"
Include dependency graph for msg_internal.h:

Go to the source code of this file.

Classes

struct  _upb_FastTable_Entry
 
struct  _upb_mapsorter
 
struct  _upb_sortedmap
 
struct  upb_Array
 
struct  upb_Map
 
struct  upb_MapEntry
 
struct  upb_Message_Extension
 
struct  upb_Message_Internal
 
struct  upb_Message_InternalData
 
struct  upb_MiniTable
 
struct  upb_MiniTable_Enum
 
struct  upb_MiniTable_Extension
 
struct  upb_MiniTable_Field
 
struct  upb_MiniTable_File
 
union  upb_MiniTable_Sub
 

Macros

#define kUpb_FieldMode_Mask   3
 
#define kUpb_NoSub   ((uint16_t)-1)
 

Enumerations

enum  upb_ExtMode {
  kUpb_ExtMode_NonExtendable = 0, kUpb_ExtMode_Extendable = 1, kUpb_ExtMode_IsMessageSet = 2, kUpb_ExtMode_IsMessageSet_ITEM,
  kUpb_ExtMode_IsMapEntry = 4
}
 
enum  upb_FieldMode { kUpb_FieldMode_Map = 0, kUpb_FieldMode_Array = 1, kUpb_FieldMode_Scalar = 2 }
 
enum  upb_FieldRep {
  kUpb_FieldRep_1Byte = 0, kUpb_FieldRep_4Byte = 1, kUpb_FieldRep_StringView = 2, kUpb_FieldRep_Pointer = 3,
  kUpb_FieldRep_8Byte = 4, kUpb_FieldRep_Shift = 5, kUpb_FieldRep_Max = kUpb_FieldRep_8Byte
}
 
enum  upb_LabelFlags { kUpb_LabelFlags_IsPacked = 4, kUpb_LabelFlags_IsExtension = 8 }
 
enum  upb_msgext_fieldnum { _UPB_MSGSET_ITEM = 1, _UPB_MSGSET_TYPEID = 2, _UPB_MSGSET_MESSAGE = 3 }
 

Functions

const UPB_INLINE void * _upb_array_accessor (const void *msg, size_t ofs, size_t *size)
 
UPB_INLINE bool _upb_Array_Append_accessor (void *msg, size_t ofs, size_t elem_size, upb_CType type, const void *value, upb_Arena *arena)
 
UPB_INLINE bool _upb_Array_Append_accessor2 (void *msg, size_t ofs, int elem_size_lg2, const void *value, upb_Arena *arena)
 
bool _upb_Array_Append_fallback (upb_Array **arr_ptr, const void *value, int elem_size_lg2, upb_Arena *arena)
 
const UPB_INLINE void * _upb_array_constptr (const upb_Array *arr)
 
UPB_INLINE void _upb_array_detach (const void *msg, size_t ofs)
 
UPB_INLINE void * _upb_array_mutable_accessor (void *msg, size_t ofs, size_t *size)
 
UPB_INLINE upb_Array_upb_Array_New (upb_Arena *a, size_t init_size, int elem_size_lg2)
 
UPB_INLINE void * _upb_array_ptr (upb_Array *arr)
 
bool _upb_array_realloc (upb_Array *arr, size_t min_size, upb_Arena *arena)
 
UPB_INLINE bool _upb_array_reserve (upb_Array *arr, size_t size, upb_Arena *arena)
 
UPB_INLINE bool _upb_Array_Resize (upb_Array *arr, size_t size, upb_Arena *arena)
 
UPB_INLINE void * _upb_Array_Resize_accessor (void *msg, size_t ofs, size_t size, upb_CType type, upb_Arena *arena)
 
UPB_INLINE void * _upb_Array_Resize_accessor2 (void *msg, size_t ofs, size_t size, int elem_size_lg2, upb_Arena *arena)
 
void * _upb_Array_Resize_fallback (upb_Array **arr_ptr, size_t size, int elem_size_lg2, upb_Arena *arena)
 
UPB_INLINE uintptr_t _upb_array_tagptr (void *ptr, int elem_size_lg2)
 
UPB_INLINE void _upb_clearhas (const upb_Message *msg, size_t idx)
 
UPB_INLINE void _upb_clearhas_field (const upb_Message *msg, const upb_MiniTable_Field *f)
 
bool _upb_extreg_add (upb_ExtensionRegistry *r, const upb_MiniTable_Extension **e, size_t count)
 
const upb_MiniTable_Extension_upb_extreg_get (const upb_ExtensionRegistry *r, const upb_MiniTable *l, uint32_t num)
 
const typedef char * _upb_FieldParser (struct upb_Decoder *d, const char *ptr, upb_Message *msg, intptr_t table, uint64_t hasbits, uint64_t data)
 
UPB_INLINE uint32_t _upb_getoneofcase (const void *msg, size_t case_ofs)
 
UPB_INLINE uint32_t _upb_getoneofcase_field (const upb_Message *msg, const upb_MiniTable_Field *f)
 
UPB_INLINE bool _upb_has_submsg_nohasbit (const upb_Message *msg, size_t ofs)
 
UPB_INLINE bool _upb_hasbit (const upb_Message *msg, size_t idx)
 
UPB_INLINE bool _upb_hasbit_field (const upb_Message *msg, const upb_MiniTable_Field *f)
 
UPB_INLINE int32_t _upb_Int32_FromI (int v)
 
UPB_INLINE int64_t _upb_Int64_FromLL (long long v)
 
UPB_INLINE void _upb_Map_Clear (upb_Map *map)
 
UPB_INLINE bool _upb_Map_Delete (upb_Map *map, const void *key, size_t key_size)
 
UPB_INLINE void _upb_map_fromkey (upb_StringView key, void *out, size_t size)
 
UPB_INLINE void _upb_map_fromvalue (upb_value val, void *out, size_t size)
 
UPB_INLINE bool _upb_Map_Get (const upb_Map *map, const void *key, size_t key_size, void *val, size_t val_size)
 
upb_Map_upb_Map_New (upb_Arena *a, size_t key_size, size_t value_size)
 
UPB_INLINE void * _upb_map_next (const upb_Map *map, size_t *iter)
 
UPB_INLINE bool _upb_Map_Set (upb_Map *map, const void *key, size_t key_size, void *val, size_t val_size, upb_Arena *a)
 
UPB_INLINE size_t _upb_Map_Size (const upb_Map *map)
 
UPB_INLINE upb_StringView _upb_map_tokey (const void *key, size_t size)
 
UPB_INLINE bool _upb_map_tovalue (const void *val, size_t size, upb_value *msgval, upb_Arena *a)
 
UPB_INLINE void _upb_mapsorter_destroy (_upb_mapsorter *s)
 
UPB_INLINE void _upb_mapsorter_init (_upb_mapsorter *s)
 
UPB_INLINE void _upb_mapsorter_popmap (_upb_mapsorter *s, _upb_sortedmap *sorted)
 
bool _upb_mapsorter_pushmap (_upb_mapsorter *s, upb_FieldType key_type, const upb_Map *map, _upb_sortedmap *sorted)
 
bool _upb_Message_AddUnknown (upb_Message *msg, const char *data, size_t len, upb_Arena *arena)
 
void _upb_Message_Clear (upb_Message *msg, const upb_MiniTable *l)
 
void _upb_Message_Clearext (upb_Message *msg, const upb_MiniTable_Extension *ext)
 
void _upb_Message_DiscardUnknown_shallow (upb_Message *msg)
 
const upb_Message_Extension_upb_Message_Getext (const upb_Message *msg, const upb_MiniTable_Extension *ext)
 
const upb_Message_Extension_upb_Message_Getexts (const upb_Message *msg, size_t *count)
 
upb_Message_Extension_upb_Message_Getorcreateext (upb_Message *msg, const upb_MiniTable_Extension *ext, upb_Arena *arena)
 
UPB_INLINE size_t _upb_Message_Hasidx (const upb_MiniTable_Field *f)
 
upb_Message_upb_Message_New (const upb_MiniTable *l, upb_Arena *a)
 
UPB_INLINE upb_Message_upb_Message_New_inl (const upb_MiniTable *l, upb_Arena *a)
 
UPB_INLINE void _upb_msg_map_clear (upb_Message *msg, size_t ofs)
 
UPB_INLINE bool _upb_msg_map_delete (upb_Message *msg, size_t ofs, const void *key, size_t key_size)
 
UPB_INLINE bool _upb_msg_map_get (const upb_Message *msg, size_t ofs, const void *key, size_t key_size, void *val, size_t val_size)
 
UPB_INLINE void _upb_msg_map_key (const void *msg, void *key, size_t size)
 
UPB_INLINE void * _upb_msg_map_next (const upb_Message *msg, size_t ofs, size_t *iter)
 
UPB_INLINE bool _upb_msg_map_set (upb_Message *msg, size_t ofs, const void *key, size_t key_size, void *val, size_t val_size, upb_Arena *arena)
 
UPB_INLINE void _upb_msg_map_set_value (void *msg, const void *val, size_t size)
 
UPB_INLINE size_t _upb_msg_map_size (const upb_Message *msg, size_t ofs)
 
UPB_INLINE void _upb_msg_map_value (const void *msg, void *val, size_t size)
 
UPB_INLINE uint32_t_upb_oneofcase (upb_Message *msg, size_t case_ofs)
 
UPB_INLINE uint32_t_upb_oneofcase_field (upb_Message *msg, const upb_MiniTable_Field *f)
 
UPB_INLINE size_t _upb_oneofcase_ofs (const upb_MiniTable_Field *f)
 
UPB_INLINE void _upb_sethas (const upb_Message *msg, size_t idx)
 
UPB_INLINE void _upb_sethas_field (const upb_Message *msg, const upb_MiniTable_Field *f)
 
UPB_INLINE int _upb_sizelg2 (upb_CType type)
 
UPB_INLINE bool _upb_sortedmap_next (_upb_mapsorter *s, const upb_Map *map, _upb_sortedmap *sorted, upb_MapEntry *ent)
 
UPB_INLINE uintptr_t _upb_tag_arrptr (void *ptr, int elem_size_lg2)
 
UPB_INLINE uint32_t _upb_UInt32_FromU (unsigned v)
 
UPB_INLINE uint64_t _upb_UInt64_FromULL (unsigned long long v)
 
UPB_INLINE upb_FieldMode upb_FieldMode_Get (const upb_MiniTable_Field *field)
 
UPB_INLINE bool upb_IsRepeatedOrMap (const upb_MiniTable_Field *field)
 
UPB_INLINE bool upb_IsSubMessage (const upb_MiniTable_Field *field)
 
UPB_INLINE upb_Message_Internalupb_Message_Getinternal (upb_Message *msg)
 
UPB_INLINE bool upb_MiniTable_Enum_CheckValue (const upb_MiniTable_Enum *e, int32_t val)
 
UPB_INLINE uint64_t upb_MiniTable_requiredmask (const upb_MiniTable *l)
 
UPB_INLINE size_t upb_msg_sizeof (const upb_MiniTable *l)
 

Variables

char _upb_CTypeo_size [12]
 

Macro Definition Documentation

◆ kUpb_FieldMode_Mask

#define kUpb_FieldMode_Mask   3

Definition at line 90 of file msg_internal.h.

◆ kUpb_NoSub

#define kUpb_NoSub   ((uint16_t)-1)

Definition at line 81 of file msg_internal.h.

Enumeration Type Documentation

◆ upb_ExtMode

Enumerator
kUpb_ExtMode_NonExtendable 
kUpb_ExtMode_Extendable 
kUpb_ExtMode_IsMessageSet 
kUpb_ExtMode_IsMessageSet_ITEM 
kUpb_ExtMode_IsMapEntry 

Definition at line 159 of file msg_internal.h.

◆ upb_FieldMode

Enumerator
kUpb_FieldMode_Map 
kUpb_FieldMode_Array 
kUpb_FieldMode_Scalar 

Definition at line 83 of file msg_internal.h.

◆ upb_FieldRep

Enumerator
kUpb_FieldRep_1Byte 
kUpb_FieldRep_4Byte 
kUpb_FieldRep_StringView 
kUpb_FieldRep_Pointer 
kUpb_FieldRep_8Byte 
kUpb_FieldRep_Shift 
kUpb_FieldRep_Max 

Definition at line 99 of file msg_internal.h.

◆ upb_LabelFlags

Enumerator
kUpb_LabelFlags_IsPacked 
kUpb_LabelFlags_IsExtension 

Definition at line 93 of file msg_internal.h.

◆ upb_msgext_fieldnum

Enumerator
_UPB_MSGSET_ITEM 
_UPB_MSGSET_TYPEID 
_UPB_MSGSET_MESSAGE 

Definition at line 179 of file msg_internal.h.

Function Documentation

◆ _upb_array_accessor()

const UPB_INLINE void* _upb_array_accessor ( const void *  msg,
size_t  ofs,
size_t *  size 
)

Definition at line 489 of file msg_internal.h.

◆ _upb_Array_Append_accessor()

UPB_INLINE bool _upb_Array_Append_accessor ( void *  msg,
size_t  ofs,
size_t  elem_size,
upb_CType  type,
const void *  value,
upb_Arena arena 
)

Definition at line 568 of file msg_internal.h.

◆ _upb_Array_Append_accessor2()

UPB_INLINE bool _upb_Array_Append_accessor2 ( void *  msg,
size_t  ofs,
int  elem_size_lg2,
const void *  value,
upb_Arena arena 
)

Definition at line 525 of file msg_internal.h.

◆ _upb_Array_Append_fallback()

bool _upb_Array_Append_fallback ( upb_Array **  arr_ptr,
const void *  value,
int  elem_size_lg2,
upb_Arena arena 
)

Definition at line 218 of file msg.c.

◆ _upb_array_constptr()

const UPB_INLINE void* _upb_array_constptr ( const upb_Array arr)

Definition at line 431 of file msg_internal.h.

◆ _upb_array_detach()

UPB_INLINE void _upb_array_detach ( const void *  msg,
size_t  ofs 
)

Definition at line 485 of file msg_internal.h.

◆ _upb_array_mutable_accessor()

UPB_INLINE void* _upb_array_mutable_accessor ( void *  msg,
size_t  ofs,
size_t *  size 
)

Definition at line 501 of file msg_internal.h.

◆ _upb_Array_New()

UPB_INLINE upb_Array* _upb_Array_New ( upb_Arena a,
size_t  init_size,
int  elem_size_lg2 
)

Definition at line 451 of file msg_internal.h.

◆ _upb_array_ptr()

UPB_INLINE void* _upb_array_ptr ( upb_Array arr)

Definition at line 441 of file msg_internal.h.

◆ _upb_array_realloc()

bool _upb_array_realloc ( upb_Array arr,
size_t  min_size,
upb_Arena arena 
)

upb_Array

Definition at line 178 of file msg.c.

◆ _upb_array_reserve()

UPB_INLINE bool _upb_array_reserve ( upb_Array arr,
size_t  size,
upb_Arena arena 
)

Definition at line 472 of file msg_internal.h.

◆ _upb_Array_Resize()

UPB_INLINE bool _upb_Array_Resize ( upb_Array arr,
size_t  size,
upb_Arena arena 
)

Definition at line 478 of file msg_internal.h.

◆ _upb_Array_Resize_accessor()

UPB_INLINE void* _upb_Array_Resize_accessor ( void *  msg,
size_t  ofs,
size_t  size,
upb_CType  type,
upb_Arena arena 
)

Definition at line 564 of file msg_internal.h.

◆ _upb_Array_Resize_accessor2()

UPB_INLINE void* _upb_Array_Resize_accessor2 ( void *  msg,
size_t  ofs,
size_t  size,
int  elem_size_lg2,
upb_Arena arena 
)

Definition at line 513 of file msg_internal.h.

◆ _upb_Array_Resize_fallback()

void* _upb_Array_Resize_fallback ( upb_Array **  arr_ptr,
size_t  size,
int  elem_size_lg2,
upb_Arena arena 
)

Definition at line 211 of file msg.c.

◆ _upb_array_tagptr()

UPB_INLINE uintptr_t _upb_array_tagptr ( void *  ptr,
int  elem_size_lg2 
)

Definition at line 436 of file msg_internal.h.

◆ _upb_clearhas()

UPB_INLINE void _upb_clearhas ( const upb_Message msg,
size_t  idx 
)

Definition at line 368 of file msg_internal.h.

◆ _upb_clearhas_field()

UPB_INLINE void _upb_clearhas_field ( const upb_Message msg,
const upb_MiniTable_Field f 
)

Definition at line 387 of file msg_internal.h.

◆ _upb_extreg_add()

bool _upb_extreg_add ( upb_ExtensionRegistry r,
const upb_MiniTable_Extension **  e,
size_t  count 
)

upb_ExtensionRegistry

Definition at line 392 of file msg.c.

◆ _upb_extreg_get()

Definition at line 417 of file msg.c.

◆ _upb_FieldParser()

const typedef char* _upb_FieldParser ( struct upb_Decoder d,
const char *  ptr,
upb_Message msg,
intptr_t  table,
uint64_t  hasbits,
uint64_t  data 
)

◆ _upb_getoneofcase()

UPB_INLINE uint32_t _upb_getoneofcase ( const void *  msg,
size_t  case_ofs 
)

Definition at line 398 of file msg_internal.h.

◆ _upb_getoneofcase_field()

UPB_INLINE uint32_t _upb_getoneofcase_field ( const upb_Message msg,
const upb_MiniTable_Field f 
)

Definition at line 412 of file msg_internal.h.

◆ _upb_has_submsg_nohasbit()

UPB_INLINE bool _upb_has_submsg_nohasbit ( const upb_Message msg,
size_t  ofs 
)

Definition at line 417 of file msg_internal.h.

◆ _upb_hasbit()

UPB_INLINE bool _upb_hasbit ( const upb_Message msg,
size_t  idx 
)

Hasbit access

Definition at line 360 of file msg_internal.h.

◆ _upb_hasbit_field()

UPB_INLINE bool _upb_hasbit_field ( const upb_Message msg,
const upb_MiniTable_Field f 
)

Definition at line 377 of file msg_internal.h.

◆ _upb_Int32_FromI()

UPB_INLINE int32_t _upb_Int32_FromI ( int  v)

upb_*Int* conversion routines

Definition at line 55 of file msg_internal.h.

◆ _upb_Int64_FromLL()

UPB_INLINE int64_t _upb_Int64_FromLL ( long long  v)

Definition at line 57 of file msg_internal.h.

◆ _upb_Map_Clear()

UPB_INLINE void _upb_Map_Clear ( upb_Map map)

Definition at line 699 of file msg_internal.h.

◆ _upb_Map_Delete()

UPB_INLINE bool _upb_Map_Delete ( upb_Map map,
const void *  key,
size_t  key_size 
)

Definition at line 693 of file msg_internal.h.

◆ _upb_map_fromkey()

UPB_INLINE void _upb_map_fromkey ( upb_StringView  key,
void *  out,
size_t  size 
)

Definition at line 625 of file msg_internal.h.

◆ _upb_map_fromvalue()

UPB_INLINE void _upb_map_fromvalue ( upb_value  val,
void *  out,
size_t  size 
)

Definition at line 646 of file msg_internal.h.

◆ _upb_Map_Get()

UPB_INLINE bool _upb_Map_Get ( const upb_Map map,
const void *  key,
size_t  key_size,
void *  val,
size_t  val_size 
)

Definition at line 661 of file msg_internal.h.

◆ _upb_Map_New()

upb_Map* _upb_Map_New ( upb_Arena a,
size_t  key_size,
size_t  value_size 
)

upb_Map

Definition at line 236 of file msg.c.

◆ _upb_map_next()

UPB_INLINE void* _upb_map_next ( const upb_Map map,
size_t *  iter 
)

Definition at line 672 of file msg_internal.h.

◆ _upb_Map_Set()

UPB_INLINE bool _upb_Map_Set ( upb_Map map,
const void *  key,
size_t  key_size,
void *  val,
size_t  val_size,
upb_Arena a 
)

Definition at line 682 of file msg_internal.h.

◆ _upb_Map_Size()

UPB_INLINE size_t _upb_Map_Size ( const upb_Map map)

Definition at line 657 of file msg_internal.h.

◆ _upb_map_tokey()

UPB_INLINE upb_StringView _upb_map_tokey ( const void *  key,
size_t  size 
)

Definition at line 617 of file msg_internal.h.

◆ _upb_map_tovalue()

UPB_INLINE bool _upb_map_tovalue ( const void *  val,
size_t  size,
upb_value msgval,
upb_Arena a 
)

Definition at line 633 of file msg_internal.h.

◆ _upb_mapsorter_destroy()

UPB_INLINE void _upb_mapsorter_destroy ( _upb_mapsorter s)

Definition at line 802 of file msg_internal.h.

◆ _upb_mapsorter_init()

UPB_INLINE void _upb_mapsorter_init ( _upb_mapsorter s)

Definition at line 796 of file msg_internal.h.

◆ _upb_mapsorter_popmap()

UPB_INLINE void _upb_mapsorter_popmap ( _upb_mapsorter s,
_upb_sortedmap sorted 
)

Definition at line 809 of file msg_internal.h.

◆ _upb_mapsorter_pushmap()

bool _upb_mapsorter_pushmap ( _upb_mapsorter s,
upb_FieldType  key_type,
const upb_Map map,
_upb_sortedmap sorted 
)

Definition at line 303 of file msg.c.

◆ _upb_Message_AddUnknown()

bool _upb_Message_AddUnknown ( upb_Message msg,
const char *  data,
size_t  len,
upb_Arena arena 
)

Definition at line 85 of file msg.c.

◆ _upb_Message_Clear()

void _upb_Message_Clear ( upb_Message msg,
const upb_MiniTable l 
)

Definition at line 48 of file msg.c.

◆ _upb_Message_Clearext()

void _upb_Message_Clearext ( upb_Message msg,
const upb_MiniTable_Extension ext 
)

Definition at line 142 of file msg.c.

◆ _upb_Message_DiscardUnknown_shallow()

void _upb_Message_DiscardUnknown_shallow ( upb_Message msg)

Definition at line 94 of file msg.c.

◆ _upb_Message_Getext()

const upb_Message_Extension* _upb_Message_Getext ( const upb_Message msg,
const upb_MiniTable_Extension ext 
)

Definition at line 125 of file msg.c.

◆ _upb_Message_Getexts()

const upb_Message_Extension* _upb_Message_Getexts ( const upb_Message msg,
size_t *  count 
)

Definition at line 112 of file msg.c.

◆ _upb_Message_Getorcreateext()

upb_Message_Extension* _upb_Message_Getorcreateext ( upb_Message msg,
const upb_MiniTable_Extension ext,
upb_Arena arena 
)

Definition at line 156 of file msg.c.

◆ _upb_Message_Hasidx()

UPB_INLINE size_t _upb_Message_Hasidx ( const upb_MiniTable_Field f)

Definition at line 372 of file msg_internal.h.

◆ _upb_Message_New()

upb_Message* _upb_Message_New ( const upb_MiniTable l,
upb_Arena a 
)

Definition at line 44 of file msg.c.

◆ _upb_Message_New_inl()

UPB_INLINE upb_Message* _upb_Message_New_inl ( const upb_MiniTable l,
upb_Arena a 
)

Definition at line 287 of file msg_internal.h.

◆ _upb_msg_map_clear()

UPB_INLINE void _upb_msg_map_clear ( upb_Message msg,
size_t  ofs 
)

Definition at line 742 of file msg_internal.h.

◆ _upb_msg_map_delete()

UPB_INLINE bool _upb_msg_map_delete ( upb_Message msg,
size_t  ofs,
const void *  key,
size_t  key_size 
)

Definition at line 735 of file msg_internal.h.

◆ _upb_msg_map_get()

UPB_INLINE bool _upb_msg_map_get ( const upb_Message msg,
size_t  ofs,
const void *  key,
size_t  key_size,
void *  val,
size_t  val_size 
)

Definition at line 710 of file msg_internal.h.

◆ _upb_msg_map_key()

UPB_INLINE void _upb_msg_map_key ( const void *  msg,
void *  key,
size_t  size 
)

Definition at line 750 of file msg_internal.h.

◆ _upb_msg_map_next()

UPB_INLINE void* _upb_msg_map_next ( const upb_Message msg,
size_t  ofs,
size_t *  iter 
)

Definition at line 718 of file msg_internal.h.

◆ _upb_msg_map_set()

UPB_INLINE bool _upb_msg_map_set ( upb_Message msg,
size_t  ofs,
const void *  key,
size_t  key_size,
void *  val,
size_t  val_size,
upb_Arena arena 
)

Definition at line 725 of file msg_internal.h.

◆ _upb_msg_map_set_value()

UPB_INLINE void _upb_msg_map_set_value ( void *  msg,
const void *  val,
size_t  size 
)

Definition at line 765 of file msg_internal.h.

◆ _upb_msg_map_size()

UPB_INLINE size_t _upb_msg_map_size ( const upb_Message msg,
size_t  ofs 
)

Definition at line 705 of file msg_internal.h.

◆ _upb_msg_map_value()

UPB_INLINE void _upb_msg_map_value ( const void *  msg,
void *  val,
size_t  size 
)

Definition at line 759 of file msg_internal.h.

◆ _upb_oneofcase()

UPB_INLINE uint32_t* _upb_oneofcase ( upb_Message msg,
size_t  case_ofs 
)

Oneof case access

Definition at line 394 of file msg_internal.h.

◆ _upb_oneofcase_field()

UPB_INLINE uint32_t* _upb_oneofcase_field ( upb_Message msg,
const upb_MiniTable_Field f 
)

Definition at line 407 of file msg_internal.h.

◆ _upb_oneofcase_ofs()

UPB_INLINE size_t _upb_oneofcase_ofs ( const upb_MiniTable_Field f)

Definition at line 402 of file msg_internal.h.

◆ _upb_sethas()

UPB_INLINE void _upb_sethas ( const upb_Message msg,
size_t  idx 
)

Definition at line 364 of file msg_internal.h.

◆ _upb_sethas_field()

UPB_INLINE void _upb_sethas_field ( const upb_Message msg,
const upb_MiniTable_Field f 
)

Definition at line 382 of file msg_internal.h.

◆ _upb_sizelg2()

UPB_INLINE int _upb_sizelg2 ( upb_CType  type)

Definition at line 543 of file msg_internal.h.

◆ _upb_sortedmap_next()

UPB_INLINE bool _upb_sortedmap_next ( _upb_mapsorter s,
const upb_Map map,
_upb_sortedmap sorted,
upb_MapEntry ent 
)

Definition at line 814 of file msg_internal.h.

◆ _upb_tag_arrptr()

UPB_INLINE uintptr_t _upb_tag_arrptr ( void *  ptr,
int  elem_size_lg2 
)

Definition at line 445 of file msg_internal.h.

◆ _upb_UInt32_FromU()

UPB_INLINE uint32_t _upb_UInt32_FromU ( unsigned  v)

Definition at line 59 of file msg_internal.h.

◆ _upb_UInt64_FromULL()

UPB_INLINE uint64_t _upb_UInt64_FromULL ( unsigned long long  v)

Definition at line 61 of file msg_internal.h.

◆ upb_FieldMode_Get()

UPB_INLINE upb_FieldMode upb_FieldMode_Get ( const upb_MiniTable_Field field)

Definition at line 110 of file msg_internal.h.

◆ upb_IsRepeatedOrMap()

UPB_INLINE bool upb_IsRepeatedOrMap ( const upb_MiniTable_Field field)

Definition at line 114 of file msg_internal.h.

◆ upb_IsSubMessage()

UPB_INLINE bool upb_IsSubMessage ( const upb_MiniTable_Field field)

Definition at line 119 of file msg_internal.h.

◆ upb_Message_Getinternal()

UPB_INLINE upb_Message_Internal* upb_Message_Getinternal ( upb_Message msg)

Definition at line 301 of file msg_internal.h.

◆ upb_MiniTable_Enum_CheckValue()

UPB_INLINE bool upb_MiniTable_Enum_CheckValue ( const upb_MiniTable_Enum e,
int32_t  val 
)

Definition at line 142 of file msg_internal.h.

◆ upb_MiniTable_requiredmask()

UPB_INLINE uint64_t upb_MiniTable_requiredmask ( const upb_MiniTable l)

Definition at line 223 of file msg_internal.h.

◆ upb_msg_sizeof()

UPB_INLINE size_t upb_msg_sizeof ( const upb_MiniTable l)

Definition at line 283 of file msg_internal.h.

Variable Documentation

◆ _upb_CTypeo_size

char _upb_CTypeo_size[12]


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