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 #include "upb/mini_table/internal/message.h" 9 10 #include <stddef.h> 11 12 #include "upb/message/internal/types.h" 13 14 // Must be last. 15 #include "upb/port/def.inc" 16 17 // A MiniTable for an empty message, used for unlinked sub-messages. 18 const struct upb_MiniTable UPB_PRIVATE(_kUpb_MiniTable_Empty) = { 19 .UPB_PRIVATE(subs) = NULL, 20 .UPB_PRIVATE(fields) = NULL, 21 .UPB_PRIVATE(size) = sizeof(struct upb_Message), 22 .UPB_PRIVATE(field_count) = 0, 23 .UPB_PRIVATE(ext) = kUpb_ExtMode_NonExtendable, 24 .UPB_PRIVATE(dense_below) = 0, 25 .UPB_PRIVATE(table_mask) = -1, 26 .UPB_PRIVATE(required_count) = 0, 27 }; 28