ADD: added new version of protobuf
This commit is contained in:
@@ -34,20 +34,18 @@
|
||||
|
||||
@class GPBCodedInputStream;
|
||||
@class GPBCodedOutputStream;
|
||||
@protocol GPBExtensionRegistry;
|
||||
@class GPBExtensionRegistry;
|
||||
@class GPBFieldDescriptor;
|
||||
|
||||
@protocol GPBDictionaryInternalsProtocol
|
||||
- (size_t)computeSerializedSizeAsField:(GPBFieldDescriptor *)field;
|
||||
- (void)writeToCodedOutputStream:(GPBCodedOutputStream *)outputStream
|
||||
asField:(GPBFieldDescriptor *)field;
|
||||
- (void)setGPBGenericValue:(GPBGenericValue *)value forGPBGenericValueKey:(GPBGenericValue *)key;
|
||||
- (void)setGPBGenericValue:(GPBGenericValue *)value
|
||||
forGPBGenericValueKey:(GPBGenericValue *)key;
|
||||
- (void)enumerateForTextFormat:(void (^)(id keyObj, id valueObj))block;
|
||||
@end
|
||||
|
||||
// Disable clang-format for the macros.
|
||||
// clang-format off
|
||||
|
||||
//%PDDM-DEFINE DICTIONARY_PRIV_INTERFACES_FOR_POD_KEY(KEY_NAME)
|
||||
//%DICTIONARY_POD_PRIV_INTERFACES_FOR_KEY(KEY_NAME)
|
||||
//%DICTIONARY_PRIVATE_INTERFACES(KEY_NAME, Object, Object)
|
||||
@@ -84,6 +82,7 @@
|
||||
|
||||
//%PDDM-EXPAND DICTIONARY_PRIV_INTERFACES_FOR_POD_KEY(UInt32)
|
||||
// This block of code is generated, do not edit it directly.
|
||||
// clang-format off
|
||||
|
||||
@interface GPBUInt32UInt32Dictionary () <GPBDictionaryInternalsProtocol> {
|
||||
@package
|
||||
@@ -145,8 +144,10 @@
|
||||
__attribute__((ns_returns_retained));
|
||||
@end
|
||||
|
||||
// clang-format on
|
||||
//%PDDM-EXPAND DICTIONARY_PRIV_INTERFACES_FOR_POD_KEY(Int32)
|
||||
// This block of code is generated, do not edit it directly.
|
||||
// clang-format off
|
||||
|
||||
@interface GPBInt32UInt32Dictionary () <GPBDictionaryInternalsProtocol> {
|
||||
@package
|
||||
@@ -208,8 +209,10 @@
|
||||
__attribute__((ns_returns_retained));
|
||||
@end
|
||||
|
||||
// clang-format on
|
||||
//%PDDM-EXPAND DICTIONARY_PRIV_INTERFACES_FOR_POD_KEY(UInt64)
|
||||
// This block of code is generated, do not edit it directly.
|
||||
// clang-format off
|
||||
|
||||
@interface GPBUInt64UInt32Dictionary () <GPBDictionaryInternalsProtocol> {
|
||||
@package
|
||||
@@ -271,8 +274,10 @@
|
||||
__attribute__((ns_returns_retained));
|
||||
@end
|
||||
|
||||
// clang-format on
|
||||
//%PDDM-EXPAND DICTIONARY_PRIV_INTERFACES_FOR_POD_KEY(Int64)
|
||||
// This block of code is generated, do not edit it directly.
|
||||
// clang-format off
|
||||
|
||||
@interface GPBInt64UInt32Dictionary () <GPBDictionaryInternalsProtocol> {
|
||||
@package
|
||||
@@ -334,8 +339,10 @@
|
||||
__attribute__((ns_returns_retained));
|
||||
@end
|
||||
|
||||
// clang-format on
|
||||
//%PDDM-EXPAND DICTIONARY_PRIV_INTERFACES_FOR_POD_KEY(Bool)
|
||||
// This block of code is generated, do not edit it directly.
|
||||
// clang-format off
|
||||
|
||||
@interface GPBBoolUInt32Dictionary () <GPBDictionaryInternalsProtocol> {
|
||||
@package
|
||||
@@ -397,8 +404,10 @@
|
||||
__attribute__((ns_returns_retained));
|
||||
@end
|
||||
|
||||
// clang-format on
|
||||
//%PDDM-EXPAND DICTIONARY_POD_PRIV_INTERFACES_FOR_KEY(String)
|
||||
// This block of code is generated, do not edit it directly.
|
||||
// clang-format off
|
||||
|
||||
@interface GPBStringUInt32Dictionary () <GPBDictionaryInternalsProtocol> {
|
||||
@package
|
||||
@@ -451,14 +460,13 @@
|
||||
keyDataType:(GPBDataType)keyDataType;
|
||||
@end
|
||||
|
||||
//%PDDM-EXPAND-END (6 expansions)
|
||||
|
||||
// clang-format on
|
||||
//%PDDM-EXPAND-END (6 expansions)
|
||||
|
||||
#pragma mark - NSDictionary Subclass
|
||||
|
||||
@interface GPBAutocreatedDictionary : NSMutableDictionary {
|
||||
@package
|
||||
@package
|
||||
GPB_UNSAFE_UNRETAINED GPBMessage *_autocreator;
|
||||
}
|
||||
@end
|
||||
@@ -469,20 +477,24 @@ CF_EXTERN_C_BEGIN
|
||||
|
||||
// Helper to compute size when an NSDictionary is used for the map instead
|
||||
// of a custom type.
|
||||
size_t GPBDictionaryComputeSizeInternalHelper(NSDictionary *dict, GPBFieldDescriptor *field);
|
||||
size_t GPBDictionaryComputeSizeInternalHelper(NSDictionary *dict,
|
||||
GPBFieldDescriptor *field);
|
||||
|
||||
// Helper to write out when an NSDictionary is used for the map instead
|
||||
// of a custom type.
|
||||
void GPBDictionaryWriteToStreamInternalHelper(GPBCodedOutputStream *outputStream,
|
||||
NSDictionary *dict, GPBFieldDescriptor *field);
|
||||
void GPBDictionaryWriteToStreamInternalHelper(
|
||||
GPBCodedOutputStream *outputStream, NSDictionary *dict,
|
||||
GPBFieldDescriptor *field);
|
||||
|
||||
// Helper to check message initialization when an NSDictionary is used for
|
||||
// the map instead of a custom type.
|
||||
BOOL GPBDictionaryIsInitializedInternalHelper(NSDictionary *dict, GPBFieldDescriptor *field);
|
||||
BOOL GPBDictionaryIsInitializedInternalHelper(NSDictionary *dict,
|
||||
GPBFieldDescriptor *field);
|
||||
|
||||
// Helper to read a map instead.
|
||||
void GPBDictionaryReadEntry(id mapDictionary, GPBCodedInputStream *stream,
|
||||
id<GPBExtensionRegistry> registry, GPBFieldDescriptor *field,
|
||||
GPBExtensionRegistry *registry,
|
||||
GPBFieldDescriptor *field,
|
||||
GPBMessage *parentMessage);
|
||||
|
||||
CF_EXTERN_C_END
|
||||
|
||||
Reference in New Issue
Block a user