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.
46 lines
1.3 KiB
46 lines
1.3 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
|
|
||
1 year ago
|
#ifndef UPB_MINI_TABLE_COMPAT_H_
|
||
|
#define UPB_MINI_TABLE_COMPAT_H_
|
||
|
|
||
1 year ago
|
#include "upb/mini_table/message.h"
|
||
2 years ago
|
|
||
|
// Must be last.
|
||
1 year ago
|
#include "upb/port/def.inc"
|
||
2 years ago
|
|
||
1 year ago
|
// upb does not support mixing minitables from different sources but these
|
||
|
// functions are still used by some existing users so for now we make them
|
||
|
// available here. This may or may not change in the future so do not add
|
||
|
// them to new code.
|
||
|
|
||
2 years ago
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
1 year ago
|
// Checks if memory layout of src is compatible with dst.
|
||
|
bool upb_MiniTable_Compatible(const upb_MiniTable* src,
|
||
|
const upb_MiniTable* dst);
|
||
|
|
||
1 year ago
|
typedef enum {
|
||
|
kUpb_MiniTableEquals_NotEqual,
|
||
|
kUpb_MiniTableEquals_Equal,
|
||
|
kUpb_MiniTableEquals_OutOfMemory,
|
||
|
} upb_MiniTableEquals_Status;
|
||
|
|
||
1 year ago
|
// Checks equality of mini tables originating from different language runtimes.
|
||
1 year ago
|
upb_MiniTableEquals_Status upb_MiniTable_Equals(const upb_MiniTable* src,
|
||
|
const upb_MiniTable* dst);
|
||
2 years ago
|
|
||
|
#ifdef __cplusplus
|
||
1 year ago
|
} /* extern "C" */
|
||
2 years ago
|
#endif
|
||
|
|
||
1 year ago
|
#include "upb/port/undef.inc"
|
||
1 year ago
|
|
||
|
#endif /* UPB_MINI_TABLE_COMPAT_H_ */
|