bloaty/third_party/protobuf/objectivec/GPBUtilities_PackagePrivate.h
Go to the documentation of this file.
1 // Protocol Buffers - Google's data interchange format
2 // Copyright 2008 Google Inc. All rights reserved.
3 // https://developers.google.com/protocol-buffers/
4 //
5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are
7 // met:
8 //
9 // * Redistributions of source code must retain the above copyright
10 // notice, this list of conditions and the following disclaimer.
11 // * Redistributions in binary form must reproduce the above
12 // copyright notice, this list of conditions and the following disclaimer
13 // in the documentation and/or other materials provided with the
14 // distribution.
15 // * Neither the name of Google Inc. nor the names of its
16 // contributors may be used to endorse or promote products derived from
17 // this software without specific prior written permission.
18 //
19 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 
31 #import <Foundation/Foundation.h>
32 
33 #import "GPBUtilities.h"
34 
36 
37 // Macros for stringifying library symbols. These are used in the generated
38 // PB descriptor classes wherever a library symbol name is represented as a
39 // string. See README.google for more information.
40 #define GPBStringify(S) #S
41 #define GPBStringifySymbol(S) GPBStringify(S)
42 
43 #define GPBNSStringify(S) @#S
44 #define GPBNSStringifySymbol(S) GPBNSStringify(S)
45 
46 // Constant to internally mark when there is no has bit.
47 #define GPBNoHasBit INT32_MAX
48 
49 CF_EXTERN_C_BEGIN
50 
51 // These two are used to inject a runtime check for version mismatch into the
52 // generated sources to make sure they are linked with a supporting runtime.
53 void GPBCheckRuntimeVersionSupport(int32_t objcRuntimeVersion);
55  // NOTE: By being inline here, this captures the value from the library's
56  // headers at the time the generated code was compiled.
57 #if defined(DEBUG) && DEBUG
59 #endif
60 }
61 
62 // Legacy version of the checks, remove when GOOGLE_PROTOBUF_OBJC_GEN_VERSION
63 // goes away (see more info in GPBBootstrap.h).
66 #if defined(DEBUG) && DEBUG
68 #endif
69 }
70 
71 // Conversion functions for de/serializing floating point types.
72 
74  union { double f; int64_t i; } u;
75  u.f = v;
76  return u.i;
77 }
78 
80  union { float f; int32_t i; } u;
81  u.f = v;
82  return u.i;
83 }
84 
86  union { double f; int64_t i; } u;
87  u.i = v;
88  return u.f;
89 }
90 
92  union { float f; int32_t i; } u;
93  u.i = v;
94  return u.f;
95 }
96 
98  return (int32_t)((uint32_t)(value) >> spaces);
99 }
100 
102  return (int64_t)((uint64_t)(value) >> spaces);
103 }
104 
105 // Decode a ZigZag-encoded 32-bit value. ZigZag encodes signed integers
106 // into values that can be efficiently encoded with varint. (Otherwise,
107 // negative values must be sign-extended to 64 bits to be varint encoded,
108 // thus always taking 10 bytes on the wire.)
110  return (int32_t)(GPBLogicalRightShift32((int32_t)n, 1) ^ -((int32_t)(n) & 1));
111 }
112 
113 // Decode a ZigZag-encoded 64-bit value. ZigZag encodes signed integers
114 // into values that can be efficiently encoded with varint. (Otherwise,
115 // negative values must be sign-extended to 64 bits to be varint encoded,
116 // thus always taking 10 bytes on the wire.)
118  return (int64_t)(GPBLogicalRightShift64((int64_t)n, 1) ^ -((int64_t)(n) & 1));
119 }
120 
121 // Encode a ZigZag-encoded 32-bit value. ZigZag encodes signed integers
122 // into values that can be efficiently encoded with varint. (Otherwise,
123 // negative values must be sign-extended to 64 bits to be varint encoded,
124 // thus always taking 10 bytes on the wire.)
126  // Note: the right-shift must be arithmetic
127  return ((uint32_t)n << 1) ^ (uint32_t)(n >> 31);
128 }
129 
130 // Encode a ZigZag-encoded 64-bit value. ZigZag encodes signed integers
131 // into values that can be efficiently encoded with varint. (Otherwise,
132 // negative values must be sign-extended to 64 bits to be varint encoded,
133 // thus always taking 10 bytes on the wire.)
135  // Note: the right-shift must be arithmetic
136  return ((uint64_t)n << 1) ^ (uint64_t)(n >> 63);
137 }
138 
139 #pragma clang diagnostic push
140 #pragma clang diagnostic ignored "-Wswitch-enum"
141 #pragma clang diagnostic ignored "-Wdirect-ivar-access"
142 
144  switch (type) {
145  case GPBDataTypeBytes:
146  case GPBDataTypeString:
147  case GPBDataTypeMessage:
148  case GPBDataTypeGroup:
149  return YES;
150  default:
151  return NO;
152  }
153 }
154 
156  switch (type) {
157  case GPBDataTypeMessage:
158  case GPBDataTypeGroup:
159  return YES;
160  default:
161  return NO;
162  }
163 }
164 
166  return GPBDataTypeIsMessage(field->description_->dataType);
167 }
168 
170  return GPBDataTypeIsObject(field->description_->dataType);
171 }
172 
174  return GPBDataTypeIsMessage(ext->description_->dataType);
175 }
176 
177 // The field is an array/map or it has an object value.
179  GPBMessageFieldDescription *desc = field->description_;
180  if ((desc->flags & (GPBFieldRepeated | GPBFieldMapKeyMask)) != 0) {
181  return YES;
182  }
183  return GPBDataTypeIsObject(desc->dataType);
184 }
185 
186 BOOL GPBGetHasIvar(GPBMessage *self, int32_t index, uint32_t fieldNumber);
187 void GPBSetHasIvar(GPBMessage *self, int32_t idx, uint32_t fieldNumber,
188  BOOL value);
190 
193  GPBMessageFieldDescription *fieldDesc = field->description_;
194  return GPBGetHasIvar(self, fieldDesc->hasIndex, fieldDesc->number);
195 }
197  BOOL value) {
198  GPBMessageFieldDescription *fieldDesc = field->description_;
199  GPBSetHasIvar(self, fieldDesc->hasIndex, fieldDesc->number, value);
200 }
201 
203  int32_t oneofHasIndex, uint32_t fieldNumberNotToClear);
204 
205 #pragma clang diagnostic pop
206 
207 //%PDDM-DEFINE GPB_IVAR_SET_DECL(NAME, TYPE)
208 //%void GPBSet##NAME##IvarWithFieldInternal(GPBMessage *self,
209 //% NAME$S GPBFieldDescriptor *field,
210 //% NAME$S TYPE value,
211 //% NAME$S GPBFileSyntax syntax);
212 //%PDDM-EXPAND GPB_IVAR_SET_DECL(Bool, BOOL)
213 // This block of code is generated, do not edit it directly.
214 
217  BOOL value,
218  GPBFileSyntax syntax);
219 //%PDDM-EXPAND GPB_IVAR_SET_DECL(Int32, int32_t)
220 // This block of code is generated, do not edit it directly.
221 
224  int32_t value,
225  GPBFileSyntax syntax);
226 //%PDDM-EXPAND GPB_IVAR_SET_DECL(UInt32, uint32_t)
227 // This block of code is generated, do not edit it directly.
228 
231  uint32_t value,
232  GPBFileSyntax syntax);
233 //%PDDM-EXPAND GPB_IVAR_SET_DECL(Int64, int64_t)
234 // This block of code is generated, do not edit it directly.
235 
238  int64_t value,
239  GPBFileSyntax syntax);
240 //%PDDM-EXPAND GPB_IVAR_SET_DECL(UInt64, uint64_t)
241 // This block of code is generated, do not edit it directly.
242 
245  uint64_t value,
246  GPBFileSyntax syntax);
247 //%PDDM-EXPAND GPB_IVAR_SET_DECL(Float, float)
248 // This block of code is generated, do not edit it directly.
249 
252  float value,
253  GPBFileSyntax syntax);
254 //%PDDM-EXPAND GPB_IVAR_SET_DECL(Double, double)
255 // This block of code is generated, do not edit it directly.
256 
259  double value,
260  GPBFileSyntax syntax);
261 //%PDDM-EXPAND GPB_IVAR_SET_DECL(Enum, int32_t)
262 // This block of code is generated, do not edit it directly.
263 
266  int32_t value,
267  GPBFileSyntax syntax);
268 //%PDDM-EXPAND-END (8 expansions)
269 
272  GPBFileSyntax syntax);
273 
275 
278  GPBFileSyntax syntax);
281  id __attribute__((ns_consumed))
282  value,
283  GPBFileSyntax syntax);
284 
285 // GPBGetObjectIvarWithField will automatically create the field (message) if
286 // it doesn't exist. GPBGetObjectIvarWithFieldNoAutocreate will return nil.
289 
292  id __attribute__((ns_consumed)) value);
293 
294 // Clears and releases the autocreated message ivar, if it's autocreated. If
295 // it's not set as autocreated, this method does nothing.
298 
299 // Returns an Objective C encoding for |selector|. |instanceSel| should be
300 // YES if it's an instance selector (as opposed to a class selector).
301 // |selector| must be a selector from MessageSignatureProtocol.
302 const char *GPBMessageEncodingForSelector(SEL selector, BOOL instanceSel);
303 
304 // Helper for text format name encoding.
305 // decodeData is the data describing the sepecial decodes.
306 // key and inputString are the input that needs decoding.
307 NSString *GPBDecodeTextFormatName(const uint8_t *decodeData, int32_t key,
308  NSString *inputString);
309 
310 // A series of selectors that are used solely to get @encoding values
311 // for them by the dynamic protobuf runtime code. See
312 // GPBMessageEncodingForSelector for details. GPBRootObject conforms to
313 // the protocol so that it is encoded in the Objective C runtime.
315 @optional
316 
317 #define GPB_MESSAGE_SIGNATURE_ENTRY(TYPE, NAME) \
318  -(TYPE)get##NAME; \
319  -(void)set##NAME : (TYPE)value; \
320  -(TYPE)get##NAME##AtIndex : (NSUInteger)index;
321 
336 GPB_MESSAGE_SIGNATURE_ENTRY(NSString *, String)
340 
341 #undef GPB_MESSAGE_SIGNATURE_ENTRY
342 
343 - (id)getArray;
344 - (NSUInteger)getArrayCount;
345 - (void)setArray:(NSArray *)array;
346 + (id)getClassValue;
347 @end
348 
349 BOOL GPBClassHasSel(Class aClass, SEL sel);
350 
351 CF_EXTERN_C_END
GOOGLE_PROTOBUF_OBJC_GEN_VERSION
#define GOOGLE_PROTOBUF_OBJC_GEN_VERSION
Definition: bloaty/third_party/protobuf/objectivec/GPBBootstrap.h:141
GPBGetObjectIvarWithFieldNoAutocreate
id GPBGetObjectIvarWithFieldNoAutocreate(GPBMessage *self, GPBFieldDescriptor *field)
GPBDecodeZigZag64
GPB_INLINE int64_t GPBDecodeZigZag64(uint64_t n)
Definition: bloaty/third_party/protobuf/objectivec/GPBUtilities_PackagePrivate.h:117
Bytes
Definition: boringssl-with-bazel/src/crypto/test/test_util.h:38
-[GPBMessageSignatureProtocol-p getArrayCount]
NSUInteger getArrayCount()
GPBOneofDescriptor
Definition: bloaty/third_party/protobuf/objectivec/GPBDescriptor.h:138
testing::internal::Int32
TypeWithSize< 4 >::Int Int32
Definition: bloaty/third_party/googletest/googletest/include/gtest/internal/gtest-port.h:2159
GOOGLE_PROTOBUF_OBJC_VERSION
#define GOOGLE_PROTOBUF_OBJC_VERSION
Definition: bloaty/third_party/protobuf/objectivec/GPBBootstrap.h:130
GPBMaybeClearOneof
void GPBMaybeClearOneof(GPBMessage *self, GPBOneofDescriptor *oneof, int32_t oneofHasIndex, uint32_t fieldNumberNotToClear)
GPBConvertInt64ToDouble
GPB_INLINE double GPBConvertInt64ToDouble(int64_t v)
Definition: bloaty/third_party/protobuf/objectivec/GPBUtilities_PackagePrivate.h:85
Bool
Definition: bloaty/third_party/googletest/googletest/test/gtest_pred_impl_unittest.cc:56
GPBCheckRuntimeVersionInternal
void GPBCheckRuntimeVersionInternal(int32_t version)
GPBGetHasIvarField
GPB_INLINE BOOL GPBGetHasIvarField(GPBMessage *self, GPBFieldDescriptor *field)
Definition: bloaty/third_party/protobuf/objectivec/GPBUtilities_PackagePrivate.h:192
Group
TypeAndValue Group(UnknownFields nested)
Definition: upb/upb/util/compare_test.cc:101
GPBExtensionIsMessage
GPB_INLINE BOOL GPBExtensionIsMessage(GPBExtensionDescriptor *ext)
Definition: bloaty/third_party/protobuf/objectivec/GPBUtilities_PackagePrivate.h:173
ext
void * ext
Definition: x509v3.h:87
GPBMessageSignatureProtocol-p
Definition: bloaty/third_party/protobuf/objectivec/GPBUtilities_PackagePrivate.h:314
GPBEncodeZigZag64
GPB_INLINE uint64_t GPBEncodeZigZag64(int64_t n)
Definition: bloaty/third_party/protobuf/objectivec/GPBUtilities_PackagePrivate.h:134
GPBConvertDoubleToInt64
GPB_INLINE int64_t GPBConvertDoubleToInt64(double v)
Definition: bloaty/third_party/protobuf/objectivec/GPBUtilities_PackagePrivate.h:73
GPBClassHasSel
BOOL GPBClassHasSel(Class aClass, SEL sel)
GPBSetUInt64IvarWithFieldInternal
void GPBSetUInt64IvarWithFieldInternal(GPBMessage *self, GPBFieldDescriptor *field, uint64_t value, GPBFileSyntax syntax)
u
OPENSSL_EXPORT pem_password_cb void * u
Definition: pem.h:351
testing::internal::UInt64
TypeWithSize< 8 >::UInt UInt64
Definition: bloaty/third_party/googletest/googletest/include/gtest/internal/gtest-port.h:2162
GPBMessageFieldDescription::number
uint32_t number
Definition: bloaty/third_party/protobuf/objectivec/GPBDescriptor_PackagePrivate.h:90
GPBSetAutocreatedRetainedObjectIvarWithField
void GPBSetAutocreatedRetainedObjectIvarWithField(GPBMessage *self, GPBFieldDescriptor *field, id __attribute__((ns_consumed)) value)
version
Definition: version.py:1
testing::internal::UInt32
TypeWithSize< 4 >::UInt UInt32
Definition: bloaty/third_party/googletest/googletest/include/gtest/internal/gtest-port.h:2160
GPBDataTypeIsMessage
GPB_INLINE BOOL GPBDataTypeIsMessage(GPBDataType type)
Definition: bloaty/third_party/protobuf/objectivec/GPBUtilities_PackagePrivate.h:155
uint8_t
unsigned char uint8_t
Definition: stdint-msvc2008.h:78
GPBDecodeTextFormatName
NSString * GPBDecodeTextFormatName(const uint8_t *decodeData, int32_t key, NSString *inputString)
GPBSetDoubleIvarWithFieldInternal
void GPBSetDoubleIvarWithFieldInternal(GPBMessage *self, GPBFieldDescriptor *field, double value, GPBFileSyntax syntax)
BOOL
int BOOL
Definition: undname.c:46
Enum
Definition: bloaty/third_party/protobuf/src/google/protobuf/type.pb.h:867
GPBDebugCheckRuntimeVersion
GPB_INLINE void GPBDebugCheckRuntimeVersion()
Definition: bloaty/third_party/protobuf/objectivec/GPBUtilities_PackagePrivate.h:65
GPBSetInt64IvarWithFieldInternal
void GPBSetInt64IvarWithFieldInternal(GPBMessage *self, GPBFieldDescriptor *field, int64_t value, GPBFileSyntax syntax)
GPBLogicalRightShift32
GPB_INLINE int32_t GPBLogicalRightShift32(int32_t value, int32_t spaces)
Definition: bloaty/third_party/protobuf/objectivec/GPBUtilities_PackagePrivate.h:97
uint32_t
unsigned int uint32_t
Definition: stdint-msvc2008.h:80
GPBSetObjectIvarWithFieldInternal
void GPBSetObjectIvarWithFieldInternal(GPBMessage *self, GPBFieldDescriptor *field, id value, GPBFileSyntax syntax)
GPBGetHasIvar
BOOL GPBGetHasIvar(GPBMessage *self, int32_t index, uint32_t fieldNumber)
GPB_DEBUG_CHECK_RUNTIME_VERSIONS
GPB_INLINE void GPB_DEBUG_CHECK_RUNTIME_VERSIONS()
Definition: bloaty/third_party/protobuf/objectivec/GPBUtilities_PackagePrivate.h:54
autogen_x86imm.f
f
Definition: autogen_x86imm.py:9
benchmark.syntax
syntax
Definition: benchmark.py:90
+[GPBMessageSignatureProtocol-p getClassValue]
id getClassValue()
GPBGetObjectIvarWithField
id GPBGetObjectIvarWithField(GPBMessage *self, GPBFieldDescriptor *field)
int64_t
signed __int64 int64_t
Definition: stdint-msvc2008.h:89
setup.v
v
Definition: third_party/bloaty/third_party/capstone/bindings/python/setup.py:42
testing::internal::Float
FloatingPoint< float > Float
Definition: bloaty/third_party/googletest/googletest/include/gtest/internal/gtest-internal.h:396
GPBMessageEncodingForSelector
const char * GPBMessageEncodingForSelector(SEL selector, BOOL instanceSel)
uint64_t
unsigned __int64 uint64_t
Definition: stdint-msvc2008.h:90
GPBSetFloatIvarWithFieldInternal
void GPBSetFloatIvarWithFieldInternal(GPBMessage *self, GPBFieldDescriptor *field, float value, GPBFileSyntax syntax)
GPBLogicalRightShift64
GPB_INLINE int64_t GPBLogicalRightShift64(int64_t value, int32_t spaces)
Definition: bloaty/third_party/protobuf/objectivec/GPBUtilities_PackagePrivate.h:101
__attribute__
__attribute__(void) start
GPBSetBoolIvarWithFieldInternal
void GPBSetBoolIvarWithFieldInternal(GPBMessage *self, GPBFieldDescriptor *field, BOOL value, GPBFileSyntax syntax)
GPB_MESSAGE_SIGNATURE_ENTRY
#define GPB_MESSAGE_SIGNATURE_ENTRY(TYPE, NAME)
Definition: bloaty/third_party/protobuf/objectivec/GPBUtilities_PackagePrivate.h:317
GPBGetEnumIvarWithFieldInternal
int32_t GPBGetEnumIvarWithFieldInternal(GPBMessage *self, GPBFieldDescriptor *field, GPBFileSyntax syntax)
GPBDataTypeIsObject
GPB_INLINE BOOL GPBDataTypeIsObject(GPBDataType type)
Definition: bloaty/third_party/protobuf/objectivec/GPBUtilities_PackagePrivate.h:143
Fixed64
TypeAndValue Fixed64(uint64_t val)
Definition: upb/upb/util/compare_test.cc:83
n
int n
Definition: abseil-cpp/absl/container/btree_test.cc:1080
setup.idx
idx
Definition: third_party/bloaty/third_party/capstone/bindings/python/setup.py:197
GPBUtilities.h
GPBMessageFieldDescription::hasIndex
int32_t hasIndex
Definition: bloaty/third_party/protobuf/objectivec/GPBDescriptor_PackagePrivate.h:95
GPBSetRetainedObjectIvarWithFieldInternal
void GPBSetRetainedObjectIvarWithFieldInternal(GPBMessage *self, GPBFieldDescriptor *field, id __attribute__((ns_consumed)) value, GPBFileSyntax syntax)
value
const char * value
Definition: hpack_parser_table.cc:165
GPBSetInt32IvarWithFieldInternal
void GPBSetInt32IvarWithFieldInternal(GPBMessage *self, GPBFieldDescriptor *field, int32_t value, GPBFileSyntax syntax)
field
const FieldDescriptor * field
Definition: bloaty/third_party/protobuf/src/google/protobuf/compiler/parser_unittest.cc:2692
GPBSetUInt32IvarWithFieldInternal
void GPBSetUInt32IvarWithFieldInternal(GPBMessage *self, GPBFieldDescriptor *field, uint32_t value, GPBFileSyntax syntax)
key
const char * key
Definition: hpack_parser_table.cc:164
GPBFieldDescriptor
Definition: bloaty/third_party/protobuf/objectivec/GPBDescriptor.h:167
GPBConvertFloatToInt32
GPB_INLINE int32_t GPBConvertFloatToInt32(float v)
Definition: bloaty/third_party/protobuf/objectivec/GPBUtilities_PackagePrivate.h:79
GPBFieldStoresObject
GPB_INLINE BOOL GPBFieldStoresObject(GPBFieldDescriptor *field)
Definition: bloaty/third_party/protobuf/objectivec/GPBUtilities_PackagePrivate.h:178
GPBExtensionDescriptor
Definition: bloaty/third_party/protobuf/objectivec/GPBDescriptor.h:296
GPBMessageFieldDescription
Definition: bloaty/third_party/protobuf/objectivec/GPBDescriptor_PackagePrivate.h:79
GPBFieldDataTypeIsObject
GPB_INLINE BOOL GPBFieldDataTypeIsObject(GPBFieldDescriptor *field)
Definition: bloaty/third_party/protobuf/objectivec/GPBUtilities_PackagePrivate.h:169
index
int index
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/protobuf.h:1184
GPBSetHasIvarField
GPB_INLINE void GPBSetHasIvarField(GPBMessage *self, GPBFieldDescriptor *field, BOOL value)
Definition: bloaty/third_party/protobuf/objectivec/GPBUtilities_PackagePrivate.h:196
testing::internal::Double
FloatingPoint< double > Double
Definition: bloaty/third_party/googletest/googletest/include/gtest/internal/gtest-internal.h:397
GPBMessage
Definition: bloaty/third_party/protobuf/objectivec/GPBMessage.h:83
GPBSetEnumIvarWithFieldInternal
void GPBSetEnumIvarWithFieldInternal(GPBMessage *self, GPBFieldDescriptor *field, int32_t value, GPBFileSyntax syntax)
desc
#define desc
Definition: bloaty/third_party/protobuf/src/google/protobuf/extension_set.h:338
GPB_INLINE
#define GPB_INLINE
Definition: bloaty/third_party/protobuf/objectivec/GPBBootstrap.h:78
GPBDescriptor_PackagePrivate.h
testing::internal::Int64
TypeWithSize< 8 >::Int Int64
Definition: bloaty/third_party/googletest/googletest/include/gtest/internal/gtest-port.h:2161
GPBEncodeZigZag32
GPB_INLINE uint32_t GPBEncodeZigZag32(int32_t n)
Definition: bloaty/third_party/protobuf/objectivec/GPBUtilities_PackagePrivate.h:125
asyncio_get_stats.type
type
Definition: asyncio_get_stats.py:37
Fixed32
TypeAndValue Fixed32(uint32_t val)
Definition: upb/upb/util/compare_test.cc:89
GPBDecodeZigZag32
GPB_INLINE int32_t GPBDecodeZigZag32(uint32_t n)
Definition: bloaty/third_party/protobuf/objectivec/GPBUtilities_PackagePrivate.h:109
int32_t
signed int int32_t
Definition: stdint-msvc2008.h:77
GPBCheckRuntimeVersionSupport
CF_EXTERN_C_BEGIN void GPBCheckRuntimeVersionSupport(int32_t objcRuntimeVersion)
GPBFieldDataTypeIsMessage
GPB_INLINE BOOL GPBFieldDataTypeIsMessage(GPBFieldDescriptor *field)
Definition: bloaty/third_party/protobuf/objectivec/GPBUtilities_PackagePrivate.h:165
GPBSetHasIvar
void GPBSetHasIvar(GPBMessage *self, int32_t idx, uint32_t fieldNumber, BOOL value)
GPBGetHasOneof
uint32_t GPBGetHasOneof(GPBMessage *self, int32_t index)
Message
Definition: protobuf/php/ext/google/protobuf/message.c:53
i
uint64_t i
Definition: abseil-cpp/absl/container/btree_benchmark.cc:230
id
uint32_t id
Definition: flow_control_fuzzer.cc:70
GPBClearAutocreatedMessageIvarWithField
void GPBClearAutocreatedMessageIvarWithField(GPBMessage *self, GPBFieldDescriptor *field)
-[GPBMessageSignatureProtocol-p getArray]
id getArray()
GPBConvertInt32ToFloat
GPB_INLINE float GPBConvertInt32ToFloat(int32_t v)
Definition: bloaty/third_party/protobuf/objectivec/GPBUtilities_PackagePrivate.h:91


grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:44