aboutsummaryrefslogtreecommitdiff
path: root/objectivec/GPBUtilities.h
diff options
context:
space:
mode:
authorThomas Van Lenten <thomasvl@google.com>2017-02-23 12:29:00 -0500
committerThomas Van Lenten <thomasvl@google.com>2017-02-23 15:04:06 -0500
commitd07176654b0b151eedb6b9dee37bfa3332e855c8 (patch)
tree1b49c9cb7d9cbf31a3d79b6f277f85610dc8d5aa /objectivec/GPBUtilities.h
parent17174b54ddd040a326dec6db75d1bfb5e5b3caa9 (diff)
downloadprotobuf-d07176654b0b151eedb6b9dee37bfa3332e855c8.tar.gz
protobuf-d07176654b0b151eedb6b9dee37bfa3332e855c8.tar.bz2
protobuf-d07176654b0b151eedb6b9dee37bfa3332e855c8.zip
Add GPBMessageDropUnknownFieldsRecursively() and tests.
GPBMessageDropUnknownFieldsRecursively() is a new helper to drop the unknownFields from a message and all sub messages (in fields or extensions).
Diffstat (limited to 'objectivec/GPBUtilities.h')
-rw-r--r--objectivec/GPBUtilities.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/objectivec/GPBUtilities.h b/objectivec/GPBUtilities.h
index 52e7d2e0..5464dfb3 100644
--- a/objectivec/GPBUtilities.h
+++ b/objectivec/GPBUtilities.h
@@ -392,6 +392,11 @@ void GPBSetMessageMapField(GPBMessage *self,
**/
NSData *GPBEmptyNSData(void) __attribute__((pure));
+/**
+ * Drops the `unknownFields` from the given message and from all sub message.
+ **/
+void GPBMessageDropUnknownFieldsRecursively(GPBMessage *message);
+
NS_ASSUME_NONNULL_END
CF_EXTERN_C_END