WPILibC++ 2027.0.0-alpha-3
Loading...
Searching...
No Matches
def_pool.h
Go to the documentation of this file.
1// Protocol Buffers - Google's data interchange format
2// Copyright 2023 Google LLC. All rights reserved.
3//
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file or at
6// https://developers.google.com/open-source/licenses/bsd
7
8#ifndef UPB_REFLECTION_DEF_POOL_INTERNAL_H_
9#define UPB_REFLECTION_DEF_POOL_INTERNAL_H_
10
13
14// Must be last.
15#include "upb/port/def.inc"
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
24
26 const upb_FieldDef* f);
28 upb_Status* status);
29bool _upb_DefPool_LookupSym(const upb_DefPool* s, const char* sym, size_t size,
30 upb_value* v);
31
35
36// For generated code only: loads a generated descriptor.
37typedef struct _upb_DefPool_Init {
38 struct _upb_DefPool_Init** deps; // Dependencies of this file.
40 const char* filename;
41 upb_StringView descriptor; // Serialized descriptor.
43
45
46// Should only be directly called by tests. This variant lets us suppress
47// the use of compiled-in tables, forcing a rebuild of the tables at runtime.
49 bool rebuild_minitable);
50
51#ifdef __cplusplus
52} /* extern "C" */
53#endif
54
55#include "upb/port/undef.inc"
56
57#endif /* UPB_REFLECTION_DEF_POOL_INTERNAL_H_ */
struct upb_ExtensionRegistry upb_ExtensionRegistry
Definition extension_registry.h:59
size_t _upb_DefPool_BytesLoaded(const upb_DefPool *s)
struct _upb_DefPool_Init _upb_DefPool_Init
bool _upb_DefPool_InsertExt(upb_DefPool *s, const upb_MiniTableExtension *ext, const upb_FieldDef *f)
void ** _upb_DefPool_ScratchData(const upb_DefPool *s)
bool _upb_DefPool_LoadDefInitEx(upb_DefPool *s, const _upb_DefPool_Init *init, bool rebuild_minitable)
void _upb_DefPool_SetPlatform(upb_DefPool *s, upb_MiniTablePlatform platform)
upb_Arena * _upb_DefPool_Arena(const upb_DefPool *s)
bool _upb_DefPool_LookupSym(const upb_DefPool *s, const char *sym, size_t size, upb_value *v)
upb_ExtensionRegistry * _upb_DefPool_ExtReg(const upb_DefPool *s)
bool _upb_DefPool_InsertSym(upb_DefPool *s, upb_StringView sym, upb_value v, upb_Status *status)
size_t * _upb_DefPool_ScratchSize(const upb_DefPool *s)
bool _upb_DefPool_LoadDefInit(upb_DefPool *s, const _upb_DefPool_Init *init)
upb_MiniTablePlatform
Definition decode.h:30
struct upb_FieldDef upb_FieldDef
Definition common.h:29
struct upb_DefPool upb_DefPool
Definition common.h:24
Definition def_pool.h:37
struct _upb_DefPool_Init ** deps
Definition def_pool.h:38
upb_StringView descriptor
Definition def_pool.h:41
const char * filename
Definition def_pool.h:40
const upb_MiniTableFile * layout
Definition def_pool.h:39
Definition arena.h:29
Definition extension.h:21
Definition file.h:14
Definition status.h:18
Definition string_view.h:23
Definition common.h:44