Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:13:17

0001 // Protocol Buffers - Google's data interchange format
0002 // Copyright 2023 Google LLC.  All rights reserved.
0003 //
0004 // Use of this source code is governed by a BSD-style
0005 // license that can be found in the LICENSE file or at
0006 // https://developers.google.com/open-source/licenses/bsd
0007 
0008 #ifndef UPB_MINI_DESCRIPTOR_INTERNAL_WIRE_CONSTANTS_H_
0009 #define UPB_MINI_DESCRIPTOR_INTERNAL_WIRE_CONSTANTS_H_
0010 
0011 #include "upb/base/descriptor_constants.h"
0012 
0013 // Must be last.
0014 #include "upb/port/def.inc"
0015 
0016 typedef enum {
0017   kUpb_EncodedType_Double = 0,
0018   kUpb_EncodedType_Float = 1,
0019   kUpb_EncodedType_Fixed32 = 2,
0020   kUpb_EncodedType_Fixed64 = 3,
0021   kUpb_EncodedType_SFixed32 = 4,
0022   kUpb_EncodedType_SFixed64 = 5,
0023   kUpb_EncodedType_Int32 = 6,
0024   kUpb_EncodedType_UInt32 = 7,
0025   kUpb_EncodedType_SInt32 = 8,
0026   kUpb_EncodedType_Int64 = 9,
0027   kUpb_EncodedType_UInt64 = 10,
0028   kUpb_EncodedType_SInt64 = 11,
0029   kUpb_EncodedType_OpenEnum = 12,
0030   kUpb_EncodedType_Bool = 13,
0031   kUpb_EncodedType_Bytes = 14,
0032   kUpb_EncodedType_String = 15,
0033   kUpb_EncodedType_Group = 16,
0034   kUpb_EncodedType_Message = 17,
0035   kUpb_EncodedType_ClosedEnum = 18,
0036 
0037   kUpb_EncodedType_RepeatedBase = 20,
0038 } upb_EncodedType;
0039 
0040 typedef enum {
0041   kUpb_EncodedFieldModifier_FlipPacked = 1 << 0,
0042   kUpb_EncodedFieldModifier_IsRequired = 1 << 1,
0043   kUpb_EncodedFieldModifier_IsProto3Singular = 1 << 2,
0044   kUpb_EncodedFieldModifier_FlipValidateUtf8 = 1 << 3,
0045 } upb_EncodedFieldModifier;
0046 
0047 enum {
0048   kUpb_EncodedValue_MinField = ' ',
0049   kUpb_EncodedValue_MaxField = 'I',
0050   kUpb_EncodedValue_MinModifier = 'L',
0051   kUpb_EncodedValue_MaxModifier = '[',
0052   kUpb_EncodedValue_End = '^',
0053   kUpb_EncodedValue_MinSkip = '_',
0054   kUpb_EncodedValue_MaxSkip = '~',
0055   kUpb_EncodedValue_OneofSeparator = '~',
0056   kUpb_EncodedValue_FieldSeparator = '|',
0057   kUpb_EncodedValue_MinOneofField = ' ',
0058   kUpb_EncodedValue_MaxOneofField = 'b',
0059   kUpb_EncodedValue_MaxEnumMask = 'A',
0060 };
0061 
0062 enum {
0063   kUpb_EncodedVersion_EnumV1 = '!',
0064   kUpb_EncodedVersion_ExtensionV1 = '#',
0065   kUpb_EncodedVersion_MapV1 = '%',
0066   kUpb_EncodedVersion_MessageV1 = '$',
0067   kUpb_EncodedVersion_MessageSetV1 = '&',
0068 };
0069 
0070 #include "upb/port/undef.inc"
0071 
0072 #endif  // UPB_MINI_DESCRIPTOR_INTERNAL_WIRE_CONSTANTS_H_