• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Protocol Buffers - Google's data interchange format
2 // Copyright 2024 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_WIRE_BYTE_SIZE_H_
9 #define UPB_WIRE_BYTE_SIZE_H_
10 
11 #include <stddef.h>
12 
13 #include "upb/message/message.h"
14 #include "upb/mini_table/message.h"
15 
16 // Must be last.
17 #include "upb/port/def.inc"
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 UPB_API size_t upb_ByteSize(const upb_Message* msg, const upb_MiniTable* mt);
24 
25 #ifdef __cplusplus
26 }  // extern "C"
27 #endif
28 
29 #include "upb/port/undef.inc"
30 
31 #endif  // UPB_WIRE_BYTE_SIZE_H_
32