Protocol Buffers - Google's data interchange format (grpc依赖)
https://developers.google.com/protocol-buffers/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.9 KiB
57 lines
1.9 KiB
1 year ago
|
// Protocol Buffers - Google's data interchange format
|
||
|
// Copyright 2023 Google LLC. All rights reserved.
|
||
|
//
|
||
1 year ago
|
// Use of this source code is governed by a BSD-style
|
||
|
// license that can be found in the LICENSE file or at
|
||
|
// https://developers.google.com/open-source/licenses/bsd
|
||
2 years ago
|
|
||
2 years ago
|
#ifndef UPB_REFLECTION_FIELD_DEF_INTERNAL_H_
|
||
|
#define UPB_REFLECTION_FIELD_DEF_INTERNAL_H_
|
||
2 years ago
|
|
||
1 year ago
|
#include "upb/reflection/field_def.h"
|
||
2 years ago
|
|
||
|
// Must be last.
|
||
1 year ago
|
#include "upb/port/def.inc"
|
||
2 years ago
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
2 years ago
|
upb_FieldDef* _upb_FieldDef_At(const upb_FieldDef* f, int i);
|
||
|
|
||
2 years ago
|
const upb_MiniTableExtension* _upb_FieldDef_ExtensionMiniTable(
|
||
2 years ago
|
const upb_FieldDef* f);
|
||
|
bool _upb_FieldDef_IsClosedEnum(const upb_FieldDef* f);
|
||
|
bool _upb_FieldDef_IsProto3Optional(const upb_FieldDef* f);
|
||
|
int _upb_FieldDef_LayoutIndex(const upb_FieldDef* f);
|
||
|
uint64_t _upb_FieldDef_Modifiers(const upb_FieldDef* f);
|
||
|
void _upb_FieldDef_Resolve(upb_DefBuilder* ctx, const char* prefix,
|
||
|
upb_FieldDef* f);
|
||
2 years ago
|
void _upb_FieldDef_BuildMiniTableExtension(upb_DefBuilder* ctx,
|
||
|
const upb_FieldDef* f);
|
||
2 years ago
|
|
||
2 years ago
|
// Allocate and initialize an array of |n| extensions (field defs).
|
||
|
upb_FieldDef* _upb_Extensions_New(
|
||
|
upb_DefBuilder* ctx, int n,
|
||
|
const UPB_DESC(FieldDescriptorProto) * const* protos, const char* prefix,
|
||
|
upb_MessageDef* m);
|
||
|
|
||
2 years ago
|
// Allocate and initialize an array of |n| field defs.
|
||
|
upb_FieldDef* _upb_FieldDefs_New(
|
||
|
upb_DefBuilder* ctx, int n,
|
||
2 years ago
|
const UPB_DESC(FieldDescriptorProto) * const* protos, const char* prefix,
|
||
2 years ago
|
upb_MessageDef* m, bool* is_sorted);
|
||
2 years ago
|
|
||
2 years ago
|
// Allocate and return a list of pointers to the |n| field defs in |ff|,
|
||
|
// sorted by field number.
|
||
|
const upb_FieldDef** _upb_FieldDefs_Sorted(const upb_FieldDef* f, int n,
|
||
|
upb_Arena* a);
|
||
2 years ago
|
|
||
2 years ago
|
#ifdef __cplusplus
|
||
|
} /* extern "C" */
|
||
|
#endif
|
||
|
|
||
1 year ago
|
#include "upb/port/undef.inc"
|
||
2 years ago
|
|
||
2 years ago
|
#endif /* UPB_REFLECTION_FIELD_DEF_INTERNAL_H_ */
|