• Home
  • Raw
  • Download

Lines Matching +full:clang +full:- +full:format

1 // Protocol Buffers - Google's data interchange format
3 // https://developers.google.com/protocol-buffers/
118 // Decode a ZigZag-encoded 32-bit value. ZigZag encodes signed integers
120 // negative values must be sign-extended to 64 bits to be varint encoded,
123 return (int32_t)(GPBLogicalRightShift32((int32_t)n, 1) ^ -((int32_t)(n) & 1)); in GPBDecodeZigZag32()
126 // Decode a ZigZag-encoded 64-bit value. ZigZag encodes signed integers
128 // negative values must be sign-extended to 64 bits to be varint encoded,
131 return (int64_t)(GPBLogicalRightShift64((int64_t)n, 1) ^ -((int64_t)(n) & 1)); in GPBDecodeZigZag64()
134 // Encode a ZigZag-encoded 32-bit value. ZigZag encodes signed integers
136 // negative values must be sign-extended to 64 bits to be varint encoded,
139 // Note: the right-shift must be arithmetic in GPBEncodeZigZag32()
143 // Encode a ZigZag-encoded 64-bit value. ZigZag encodes signed integers
145 // negative values must be sign-extended to 64 bits to be varint encoded,
148 // Note: the right-shift must be arithmetic in GPBEncodeZigZag64()
152 #pragma clang diagnostic push
153 #pragma clang diagnostic ignored "-Wswitch-enum"
154 #pragma clang diagnostic ignored "-Wdirect-ivar-access"
179 return GPBDataTypeIsMessage(field->description_->dataType); in GPBFieldDataTypeIsMessage()
183 return GPBDataTypeIsObject(field->description_->dataType); in GPBFieldDataTypeIsObject()
187 return GPBDataTypeIsMessage(ext->description_->dataType); in GPBExtensionIsMessage()
192 GPBMessageFieldDescription *desc = field->description_; in GPBFieldStoresObject()
193 if ((desc->flags & (GPBFieldRepeated | GPBFieldMapKeyMask)) != 0) { in GPBFieldStoresObject()
196 return GPBDataTypeIsObject(desc->dataType); in GPBFieldStoresObject()
206 GPBMessageFieldDescription *fieldDesc = field->description_; in GPBGetHasIvarField()
207 return GPBGetHasIvar(self, fieldDesc->hasIndex, fieldDesc->number); in GPBGetHasIvarField()
210 #pragma clang diagnostic pop
212 //%PDDM-DEFINE GPB_IVAR_SET_DECL(NAME, TYPE)
216 //%PDDM-EXPAND GPB_IVAR_SET_DECL(Bool, BOOL)
218 // clang-format off
223 // clang-format on
224 //%PDDM-EXPAND GPB_IVAR_SET_DECL(Int32, int32_t)
226 // clang-format off
231 // clang-format on
232 //%PDDM-EXPAND GPB_IVAR_SET_DECL(UInt32, uint32_t)
234 // clang-format off
239 // clang-format on
240 //%PDDM-EXPAND GPB_IVAR_SET_DECL(Int64, int64_t)
242 // clang-format off
247 // clang-format on
248 //%PDDM-EXPAND GPB_IVAR_SET_DECL(UInt64, uint64_t)
250 // clang-format off
255 // clang-format on
256 //%PDDM-EXPAND GPB_IVAR_SET_DECL(Float, float)
258 // clang-format off
263 // clang-format on
264 //%PDDM-EXPAND GPB_IVAR_SET_DECL(Double, double)
266 // clang-format off
271 // clang-format on
272 //%PDDM-EXPAND-END (7 expansions)
302 // Helper for text format name encoding.
325 -(TYPE)get##NAME; \
326 -(void)set##NAME : (TYPE)value; \
327 -(TYPE)get##NAME##AtIndex : (NSUInteger)index;
350 - (id)getArray;
351 - (NSUInteger)getArrayCount;
352 - (void)setArray:(NSArray *)array;