8#ifndef UPB_MESSAGE_INTERNAL_ACCESSORS_H_
9#define UPB_MESSAGE_INTERNAL_ACCESSORS_H_
35#if defined(__GNUC__) && !defined(__clang__)
45#pragma GCC diagnostic push
46#pragma GCC diagnostic ignored "-Warray-bounds"
47#pragma GCC diagnostic ignored "-Wstringop-overflow"
49#pragma GCC diagnostic ignored "-Wstringop-overread"
66 return (*
UPB_PTR_AT(msg, offset,
const char) & mask) != 0;
129 if (field_number == 0) {
142 memcpy(&bits, msg + 1,
sizeof(bits));
149 return (
char*)msg + f->UPB_ONLYBITS(offset);
154 return (
const char*)msg + f->UPB_ONLYBITS(offset);
190 return memcmp(a, b, 1) == 0;
192 return memcmp(a, b, 4) == 0;
194 return memcmp(a, b, 8) == 0;
206 const char zero[16] = {0};
212 const char zero[16] = {0};
268 const void* default_val,
void* val) {
282 const void* default_val,
void* val) {
329 if (!ext)
return false;
373 double default_val) {
397 int32_t default_val) {
410 int64_t default_val) {
425 uintptr_t default_val = 0;
437 const struct upb_Map* default_val = NULL;
459 uintptr_t sub_message) {
512 struct upb_Map* default_map_value = NULL;
572 uint32_t default_val) {
584 uint64_t default_val) {
883 const char zeros[16] = {0};
893 for (
size_t i = 0; i < in->size; i++) {
910 if (field_number == 0) {
944 double default_val) {
966 int32_t default_val) {
978 int64_t default_val) {
989 uint32_t default_val) {
1000 uint64_t default_val) {
1062#if defined(__GNUC__) && !defined(__clang__)
1063#pragma GCC diagnostic pop
and restrictions which apply to each piece of software is included later in this file and or inside of the individual applicable source files The disclaimer of warranty in the WPILib license above applies to all code in and nothing in any of the other licenses gives permission to use the names of FIRST nor the names of the WPILib contributors to endorse or promote products derived from this software The following pieces of software have additional or alternate and or glfw and nanopb were modified for use in Google Inc All rights reserved Redistribution and use in source and binary with or without are permitted provided that the following conditions are this list of conditions and the following disclaimer *Redistributions in binary form must reproduce the above copyright this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution *Neither the name of Google Inc nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND ANY EXPRESS OR IMPLIED BUT NOT LIMITED THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY OR CONSEQUENTIAL WHETHER IN STRICT OR EVEN IF ADVISED OF THE POSSIBILITY OF SUCH January AND DISTRIBUTION Definitions License shall mean the terms and conditions for and distribution as defined by Sections through of this document Licensor shall mean the copyright owner or entity authorized by the copyright owner that is granting the License Legal Entity shall mean the union of the acting entity and all other entities that control are controlled by or are under common control with that entity For the purposes of this definition control direct or to cause the direction or management of such whether by contract or including but not limited to software source documentation and configuration files Object form shall mean any form resulting from mechanical transformation or translation of a Source including but not limited to compiled object generated and conversions to other media types Work shall mean the work of whether in Source or Object made available under the as indicated by a copyright notice that is included in or attached to the whether in Source or Object that is based or other modifications as a an original work of authorship For the purposes of this Derivative Works shall not include works that remain separable from
Definition ThirdPartyNotices.txt:140
UPB_API_INLINE bool upb_Message_SetExtensionInt32(struct upb_Message *msg, const upb_MiniTableExtension *e, int32_t value, upb_Arena *a)
Definition accessors.h:728
UPB_API_INLINE bool upb_Message_HasBaseField(const upb_Message *msg, const upb_MiniTableField *f)
UPB_API_INLINE bool upb_Message_HasExtension(const upb_Message *msg, const upb_MiniTableExtension *e)
UPB_API_INLINE upb_Map * upb_Message_GetOrCreateMutableMap(upb_Message *msg, const upb_MiniTable *map_entry_mini_table, const upb_MiniTableField *f, upb_Arena *arena)
Definition accessors.h:523
UPB_API_INLINE void upb_Message_SetBaseFieldDouble(struct upb_Message *msg, const upb_MiniTableField *f, double value)
Definition accessors.h:605
UPB_API_INLINE void upb_Message_SetBaseFieldInt32(struct upb_Message *msg, const upb_MiniTableField *f, int32_t value)
Definition accessors.h:623
UPB_API_INLINE bool upb_Message_SetExtensionFloat(struct upb_Message *msg, const upb_MiniTableExtension *e, float value, upb_Arena *a)
Definition accessors.h:719
UPB_API_INLINE void upb_Message_ClearBaseField(upb_Message *msg, const upb_MiniTableField *f)
Definition accessors.h:873
UPB_API_INLINE const upb_Array * upb_Message_GetArray(const upb_Message *msg, const upb_MiniTableField *f)
UPB_API_INLINE bool upb_Message_SetExtensionInt64(struct upb_Message *msg, const upb_MiniTableExtension *e, int64_t value, upb_Arena *a)
Definition accessors.h:738
UPB_API_INLINE float upb_Message_GetFloat(const upb_Message *msg, const upb_MiniTableField *f, float default_val)
UPB_API_INLINE bool upb_Message_SetExtensionMessage(struct upb_Message *msg, const upb_MiniTableExtension *e, struct upb_Message *value, upb_Arena *a)
Definition accessors.h:691
UPB_API_INLINE int32_t upb_Message_GetExtensionInt32(const upb_Message *msg, const upb_MiniTableExtension *f, int32_t default_val)
UPB_API_INLINE const upb_Message * upb_Message_GetMessage(const upb_Message *msg, const upb_MiniTableField *f)
UPB_API_INLINE void upb_Message_SetClosedEnum(upb_Message *msg, const upb_MiniTable *msg_mini_table, const upb_MiniTableField *f, int32_t value)
Definition accessors.h:678
UPB_API_INLINE float upb_Message_GetExtensionFloat(const upb_Message *msg, const upb_MiniTableExtension *f, float default_val)
UPB_API_INLINE upb_Message * upb_Message_GetOrCreateMutableMessage(upb_Message *msg, const upb_MiniTable *mini_table, const upb_MiniTableField *f, upb_Arena *arena)
Definition accessors.h:537
UPB_API_INLINE void upb_Message_SetBaseFieldBool(struct upb_Message *msg, const upb_MiniTableField *f, bool value)
Definition accessors.h:596
UPB_API_INLINE bool upb_Message_SetUInt32(upb_Message *msg, const upb_MiniTableField *f, uint32_t value, upb_Arena *a)
Definition accessors.h:844
UPB_API_INLINE int32_t upb_Message_GetInt32(const upb_Message *msg, const upb_MiniTableField *f, int32_t default_val)
UPB_API_INLINE bool upb_Message_SetUInt64(upb_Message *msg, const upb_MiniTableField *f, uint64_t value, upb_Arena *a)
Definition accessors.h:853
UPB_API_INLINE uint64_t upb_Message_GetExtensionUInt64(const upb_Message *msg, const upb_MiniTableExtension *f, uint64_t default_val)
UPB_API_INLINE uint64_t upb_Message_GetUInt64(const upb_Message *msg, const upb_MiniTableField *f, uint64_t default_val)
UPB_API_INLINE upb_Array * upb_Message_GetExtensionMutableArray(upb_Message *msg, const upb_MiniTableExtension *f)
Definition accessors.h:1045
UPB_API_INLINE bool upb_Message_SetDouble(upb_Message *msg, const upb_MiniTableField *f, double value, upb_Arena *a)
Definition accessors.h:786
UPB_API_INLINE uint32_t upb_Message_GetUInt32(const upb_Message *msg, const upb_MiniTableField *f, uint32_t default_val)
UPB_API_INLINE uint32_t upb_Message_GetExtensionUInt32(const upb_Message *msg, const upb_MiniTableExtension *f, uint32_t default_val)
UPB_API_INLINE int64_t upb_Message_GetExtensionInt64(const upb_Message *msg, const upb_MiniTableExtension *f, int64_t default_val)
UPB_API_INLINE bool upb_Message_GetBool(const upb_Message *msg, const upb_MiniTableField *f, bool default_val)
UPB_API_INLINE bool upb_Message_SetExtensionBool(struct upb_Message *msg, const upb_MiniTableExtension *e, bool value, upb_Arena *a)
Definition accessors.h:701
UPB_API_INLINE upb_StringView upb_Message_GetString(const upb_Message *msg, const upb_MiniTableField *field, upb_StringView default_val)
UPB_API_INLINE bool upb_Message_SetFloat(upb_Message *msg, const upb_MiniTableField *f, float value, upb_Arena *a)
Definition accessors.h:795
UPB_API_INLINE void upb_Message_ClearExtension(upb_Message *msg, const upb_MiniTableExtension *e)
Definition accessors.h:888
UPB_API_INLINE bool upb_Message_SetExtensionUInt32(struct upb_Message *msg, const upb_MiniTableExtension *e, uint32_t value, upb_Arena *a)
Definition accessors.h:757
UPB_API_INLINE upb_Array * upb_Message_GetOrCreateMutableArray(upb_Message *msg, const upb_MiniTableField *f, upb_Arena *arena)
Definition accessors.h:489
UPB_API_INLINE bool upb_Message_SetInt32(upb_Message *msg, const upb_MiniTableField *f, int32_t value, upb_Arena *a)
Definition accessors.h:804
UPB_API_INLINE upb_Map * upb_Message_GetMutableMap(upb_Message *msg, const upb_MiniTableField *f)
Definition accessors.h:479
UPB_API_INLINE upb_Message * upb_Message_GetMutableMessage(upb_Message *msg, const upb_MiniTableField *f)
Definition accessors.h:484
UPB_API_INLINE void upb_Message_Clear(upb_Message *msg, const upb_MiniTable *m)
Definition accessors.h:862
UPB_API_INLINE const upb_Map * upb_Message_GetMap(const upb_Message *msg, const upb_MiniTableField *f)
UPB_API_INLINE upb_TaggedMessagePtr upb_Message_GetTaggedMessagePtr(const upb_Message *msg, const upb_MiniTableField *field, upb_Message *default_val)
UPB_API_INLINE void upb_Message_SetBaseFieldUInt64(struct upb_Message *msg, const upb_MiniTableField *f, uint64_t value)
Definition accessors.h:669
UPB_API_INLINE const upb_MiniTableField * upb_Message_WhichOneof(const upb_Message *msg, const upb_MiniTable *m, const upb_MiniTableField *f)
UPB_API_INLINE bool upb_Message_SetExtensionUInt64(struct upb_Message *msg, const upb_MiniTableExtension *e, uint64_t value, upb_Arena *a)
Definition accessors.h:766
UPB_API_INLINE upb_StringView upb_Message_GetExtensionString(const upb_Message *msg, const upb_MiniTableExtension *f, upb_StringView default_val)
UPB_API_INLINE bool upb_Message_SetString(upb_Message *msg, const upb_MiniTableField *f, upb_StringView value, upb_Arena *a)
Definition accessors.h:835
UPB_API_INLINE void upb_Message_ClearOneof(upb_Message *msg, const upb_MiniTable *m, const upb_MiniTableField *f)
Definition accessors.h:905
UPB_API_INLINE void upb_Message_SetBaseFieldString(struct upb_Message *msg, const upb_MiniTableField *f, upb_StringView value)
Definition accessors.h:649
UPB_API_INLINE bool upb_Message_SetExtension(upb_Message *msg, const upb_MiniTableExtension *e, const void *value, upb_Arena *a)
Definition accessors.h:322
UPB_API_INLINE bool upb_Message_SetBool(upb_Message *msg, const upb_MiniTableField *f, bool value, upb_Arena *a)
Definition accessors.h:777
UPB_API_INLINE upb_MessageValue upb_Message_GetField(const upb_Message *msg, const upb_MiniTableField *f, upb_MessageValue default_val)
UPB_API_INLINE bool upb_Message_SetExtensionString(struct upb_Message *msg, const upb_MiniTableExtension *e, upb_StringView value, upb_Arena *a)
Definition accessors.h:747
UPB_API_INLINE void * upb_Message_ResizeArrayUninitialized(upb_Message *msg, const upb_MiniTableField *f, size_t size, upb_Arena *arena)
Definition accessors.h:920
UPB_API_INLINE double upb_Message_GetDouble(const upb_Message *msg, const upb_MiniTableField *field, double default_val)
UPB_API_INLINE upb_Array * upb_Message_GetMutableArray(upb_Message *msg, const upb_MiniTableField *f)
Definition accessors.h:473
UPB_API_INLINE const upb_Array * upb_Message_GetExtensionArray(const upb_Message *msg, const upb_MiniTableExtension *f)
UPB_API_INLINE void upb_Message_SetBaseField(upb_Message *msg, const upb_MiniTableField *f, const void *val)
Definition accessors.h:312
UPB_API_INLINE uint32_t upb_Message_WhichOneofFieldNumber(const upb_Message *message, const upb_MiniTableField *oneof_field)
UPB_API_INLINE void upb_Message_SetMessage(upb_Message *msg, const upb_MiniTableField *f, upb_Message *value)
Definition accessors.h:824
UPB_API_INLINE bool upb_Message_GetExtensionBool(const upb_Message *msg, const upb_MiniTableExtension *f, bool default_val)
UPB_API_INLINE void upb_Message_SetBaseFieldMessage(struct upb_Message *msg, const upb_MiniTableField *f, upb_Message *value)
Definition accessors.h:642
UPB_API_INLINE bool upb_Message_SetInt64(upb_Message *msg, const upb_MiniTableField *f, int64_t value, upb_Arena *a)
Definition accessors.h:813
UPB_API_INLINE void upb_Message_SetBaseFieldInt64(struct upb_Message *msg, const upb_MiniTableField *f, int64_t value)
Definition accessors.h:633
UPB_API_INLINE double upb_Message_GetExtensionDouble(const upb_Message *msg, const upb_MiniTableExtension *f, double default_val)
UPB_API_INLINE void upb_Message_SetBaseFieldUInt32(struct upb_Message *msg, const upb_MiniTableField *f, uint32_t value)
Definition accessors.h:660
UPB_API_INLINE upb_Message * upb_Message_GetExtensionMessage(const upb_Message *msg, const upb_MiniTableExtension *f, struct upb_Message *default_val)
UPB_API_INLINE int64_t upb_Message_GetInt64(const upb_Message *msg, const upb_MiniTableField *f, int64_t default_val)
UPB_API_INLINE bool upb_Message_SetExtensionDouble(struct upb_Message *msg, const upb_MiniTableExtension *e, double value, upb_Arena *a)
Definition accessors.h:710
UPB_API_INLINE void upb_Message_SetBaseFieldFloat(struct upb_Message *msg, const upb_MiniTableField *f, float value)
Definition accessors.h:614
#define UPB_UNUSED(var)
Definition def.inc:303
#define UPB_UNREACHABLE()
Definition def.inc:345
#define UPB_API_INLINE
Definition def.inc:163
#define UPB_SIZE(size32, size64)
Definition def.inc:112
#define UPB_PTR_AT(msg, ofs, type)
Definition def.inc:118
#define UPB_ASSUME(expr)
Definition def.inc:319
#define UPB_ASSERT(expr)
Definition def.inc:329
#define UPB_PRIVATE(x)
Definition def.inc:393
#define UPB_FORCEINLINE
Definition def.inc:288
#define UPB_INLINE
Definition def.inc:144
#define UPB_INLINE_IF_NOT_GCC
Definition def.inc:155
@ kUpb_CType_UInt64
Definition descriptor_constants.h:27
@ kUpb_CType_UInt32
Definition descriptor_constants.h:22
@ kUpb_CType_Float
Definition descriptor_constants.h:20
@ kUpb_CType_Double
Definition descriptor_constants.h:25
@ kUpb_CType_Enum
Definition descriptor_constants.h:23
@ kUpb_CType_Bool
Definition descriptor_constants.h:19
@ kUpb_CType_Message
Definition descriptor_constants.h:24
@ kUpb_CType_Int32
Definition descriptor_constants.h:21
@ kUpb_CType_Bytes
Definition descriptor_constants.h:29
@ kUpb_CType_Int64
Definition descriptor_constants.h:26
@ kUpb_CType_String
Definition descriptor_constants.h:28
UPB_API_INLINE uint32_t upb_MiniTableField_Number(const upb_MiniTableField *f)
UPB_API_INLINE bool upb_MiniTableField_IsScalar(const upb_MiniTableField *f)
UPB_API_INLINE bool upb_MiniTableField_IsInOneof(const upb_MiniTableField *f)
UPB_API_INLINE bool upb_MiniTableField_HasPresence(const upb_MiniTableField *f)
UPB_API_INLINE upb_CType upb_MiniTableField_CType(const upb_MiniTableField *f)
UPB_API_INLINE bool upb_MiniTableField_IsClosedEnum(const upb_MiniTableField *f)
UPB_API_INLINE bool upb_MiniTableField_IsExtension(const upb_MiniTableField *f)
UPB_API_INLINE bool upb_MiniTableField_IsArray(const upb_MiniTableField *f)
UPB_INLINE void UPB_PRIVATE _upb_Message_SetOneofCase(struct upb_Message *msg, const upb_MiniTableField *f)
Definition accessors.h:101
UPB_INLINE bool UPB_PRIVATE _upb_MiniTableField_DataIsZero(const upb_MiniTableField *f, const void *val)
Definition accessors.h:210
UPB_INLINE bool UPB_PRIVATE _upb_Message_IsInitializedShallow(const struct upb_Message *msg, const upb_MiniTable *m)
Definition accessors.h:139
UPB_INLINE void UPB_PRIVATE _upb_Message_SetPresence(struct upb_Message *msg, const upb_MiniTableField *f)
Definition accessors.h:157
UPB_INLINE void UPB_PRIVATE _upb_Message_SetHasbit(const struct upb_Message *msg, const upb_MiniTableField *f)
Definition accessors.h:69
UPB_INLINE bool UPB_PRIVATE _upb_Message_SetField(struct upb_Message *msg, const upb_MiniTableField *f, upb_MessageValue val, upb_Arena *a)
Definition accessors.h:338
UPB_INLINE void UPB_PRIVATE _upb_MiniTableField_DataClear(const upb_MiniTableField *f, void *val)
Definition accessors.h:204
UPB_INLINE void *UPB_PRIVATE _upb_Message_MutableDataPtr(struct upb_Message *msg, const upb_MiniTableField *f)
Definition accessors.h:147
UPB_INLINE_IF_NOT_GCC void UPB_PRIVATE _upb_MiniTableField_DataCopy(const upb_MiniTableField *f, void *to, const void *from)
Definition accessors.h:166
UPB_INLINE bool UPB_PRIVATE _upb_Message_GetHasbit(const struct upb_Message *msg, const upb_MiniTableField *f)
Definition accessors.h:61
UPB_INLINE const void *UPB_PRIVATE _upb_Message_DataPtr(const struct upb_Message *msg, const upb_MiniTableField *f)
Definition accessors.h:152
UPB_INLINE struct upb_Map * _upb_Message_GetOrCreateMutableMap(struct upb_Message *msg, const upb_MiniTableField *field, size_t key_size, size_t val_size, upb_Arena *arena)
Definition accessors.h:506
UPB_INLINE_IF_NOT_GCC bool UPB_PRIVATE _upb_MiniTableField_DataEquals(const upb_MiniTableField *f, const void *a, const void *b)
Definition accessors.h:186
UPB_FORCEINLINE void _upb_Message_GetNonExtensionField(const struct upb_Message *msg, const upb_MiniTableField *field, const void *default_val, void *val)
Definition accessors.h:266
UPB_INLINE uint32_t *UPB_PRIVATE _upb_Message_OneofCasePtr(struct upb_Message *msg, const upb_MiniTableField *f)
Definition accessors.h:87
UPB_INLINE void UPB_PRIVATE _upb_Message_ClearHasbit(const struct upb_Message *msg, const upb_MiniTableField *f)
Definition accessors.h:77
UPB_INLINE void UPB_PRIVATE _upb_Message_SetTaggedMessagePtr(struct upb_Message *msg, const upb_MiniTableField *f, uintptr_t sub_message)
Definition accessors.h:457
UPB_INLINE void _upb_Message_GetExtensionField(const struct upb_Message *msg, const upb_MiniTableExtension *mt_ext, const void *default_val, void *val)
Definition accessors.h:280
UPB_INLINE uint32_t UPB_PRIVATE _upb_Message_GetOneofCase(const struct upb_Message *msg, const upb_MiniTableField *f)
Definition accessors.h:93
UPB_INLINE bool UPB_PRIVATE _upb_Message_ClearOneofCase(struct upb_Message *msg, const upb_MiniTableField *f)
Definition accessors.h:110
UPB_INLINE void UPB_PRIVATE _upb_Message_AssertMapIsUntagged(const struct upb_Message *msg, const upb_MiniTableField *field)
Definition accessors.h:420
UPB_API_INLINE bool upb_MiniTableEnum_CheckValue(const struct upb_MiniTableEnum *e, uint32_t val)
Definition enum.h:26
UPB_INLINE bool UPB_PRIVATE _upb_MiniTableField_HasHasbit(const struct upb_MiniTableField *f)
Definition field.h:133
UPB_INLINE char UPB_PRIVATE _upb_MiniTableField_HasbitMask(const struct upb_MiniTableField *f)
Definition field.h:138
UPB_INLINE size_t UPB_PRIVATE _upb_MiniTableField_ElemSizeLg2(const struct upb_MiniTableField *f)
Definition field.h:209
UPB_INLINE size_t UPB_PRIVATE _upb_MiniTableField_OneofOffset(const struct upb_MiniTableField *f)
Definition field.h:187
UPB_INLINE void UPB_PRIVATE _upb_MiniTableField_CheckIsArray(const struct upb_MiniTableField *f)
Definition field.h:193
UPB_INLINE upb_FieldRep UPB_PRIVATE _upb_MiniTableField_GetRep(const struct upb_MiniTableField *f)
Definition field.h:83
UPB_INLINE uint16_t UPB_PRIVATE _upb_MiniTableField_HasbitOffset(const struct upb_MiniTableField *f)
Definition field.h:145
@ kUpb_FieldRep_1Byte
Definition field.h:61
@ kUpb_FieldRep_NativePointer
Definition field.h:66
@ kUpb_FieldRep_StringView
Definition field.h:63
@ kUpb_FieldRep_8Byte
Definition field.h:64
@ kUpb_FieldRep_4Byte
Definition field.h:62
UPB_INLINE void UPB_PRIVATE _upb_MiniTableField_CheckIsMap(const struct upb_MiniTableField *f)
Definition field.h:201
UPB_INLINE size_t _upb_Map_CTypeSize(upb_CType ctype)
Definition map.h:216
struct upb_Map * _upb_Map_New(upb_Arena *a, size_t key_size, size_t value_size)
UPB_INLINE uintptr_t UPB_PRIVATE _upb_TaggedMessagePtr_Pack(struct upb_Message *ptr, bool empty)
Definition tagged_ptr.h:24
const upb_Extension *UPB_PRIVATE _upb_Message_Getext(const struct upb_Message *msg, const upb_MiniTableExtension *ext)
upb_Extension *UPB_PRIVATE _upb_Message_GetOrCreateExtension(struct upb_Message *msg, const upb_MiniTableExtension *ext, upb_Arena *arena)
UPB_INLINE bool upb_TaggedAuxPtr_IsExtension(upb_TaggedAuxPtr ptr)
Definition message.h:56
UPB_INLINE upb_TaggedAuxPtr upb_TaggedAuxPtr_Null(void)
Definition message.h:78
UPB_INLINE upb_Extension * upb_TaggedAuxPtr_Extension(upb_TaggedAuxPtr ptr)
Definition message.h:68
UPB_INLINE struct upb_Message * _upb_Message_New(const upb_MiniTable *m, upb_Arena *a)
Definition message.h:126
UPB_API_INLINE upb_CType upb_MiniTableExtension_CType(const struct upb_MiniTableExtension *e)
Definition extension.h:34
UPB_INLINE upb_FieldRep UPB_PRIVATE _upb_MiniTableExtension_GetRep(const struct upb_MiniTableExtension *e)
Definition extension.h:84
UPB_INLINE uint64_t UPB_PRIVATE _upb_MiniTable_RequiredMask(const struct upb_MiniTable *m)
Definition message.h:237
UPB_API_INLINE const upb_MiniTableEnum * upb_MiniTable_GetSubEnumTable(const upb_MiniTable *m, const upb_MiniTableField *f)
UPB_API_INLINE const upb_MiniTableField * upb_MiniTable_FindFieldByNumber(const upb_MiniTable *m, uint32_t number)
UPB_API_INLINE const upb_MiniTable * upb_MiniTable_SubMessage(const upb_MiniTable *m, const upb_MiniTableField *f)
UPB_INLINE bool upb_StringView_IsEqual(upb_StringView a, upb_StringView b)
Definition string_view.h:44
Definition extension.h:32
const upb_MiniTableExtension * ext
Definition extension.h:33
upb_MessageValue data
Definition extension.h:34
char val_size
Definition map.h:42
char key_size
Definition map.h:41
Definition extension.h:21
struct upb_MiniTableField UPB_PRIVATE(field)
uint32_t UPB_ONLYBITS(number)
int16_t presence
Definition field.h:24
const struct upb_MiniTableField * UPB_ONLYBITS(fields)
const upb_MiniTableSubInternal * UPB_PRIVATE(subs)
Definition string_view.h:23
UPB_API_INLINE bool upb_TaggedMessagePtr_IsEmpty(upb_TaggedMessagePtr ptr)
Definition tagged_ptr.h:29
UPB_API_INLINE upb_Message * upb_TaggedMessagePtr_GetNonEmptyMessage(upb_TaggedMessagePtr ptr)
Definition tagged_ptr.h:38
UPB_INLINE struct upb_Array *UPB_PRIVATE _upb_Array_New(upb_Arena *arena, size_t init_capacity, int elem_size_lg2)
Definition array.h:95
UPB_API_INLINE void * upb_Array_MutableDataPtr(struct upb_Array *array)
Definition array.h:72
UPB_INLINE bool UPB_PRIVATE _upb_Array_ResizeUninitialized(struct upb_Array *array, size_t size, upb_Arena *arena)
Definition array.h:133
float float_val
Definition value.h:29
const struct upb_Array * array_val
Definition value.h:35
bool bool_val
Definition value.h:28
int64_t int64_val
Definition value.h:32
uint64_t uint64_val
Definition value.h:34
int32_t int32_val
Definition value.h:31
double double_val
Definition value.h:30
uint32_t uint32_val
Definition value.h:33
upb_StringView str_val
Definition value.h:38
UPB_INLINE uint64_t upb_BigEndian64(uint64_t val)
Definition endian.h:32
UPB_API_INLINE bool upb_Message_IsFrozen(const struct upb_Message *msg)
Definition types.h:34
UPB_INLINE struct upb_Message_Internal *UPB_PRIVATE _upb_Message_GetInternal(const struct upb_Message *msg)
Definition types.h:38