From 1dcc329427fd103a0abd96ab787270f5d0a31861 Mon Sep 17 00:00:00 2001 From: Thomas Van Lenten Date: Thu, 21 May 2015 17:14:52 -0400 Subject: Objective C Second Alpha Drop - Style fixups in the code. - map<> serialization fixes and more tests. - Autocreation of map<> fields (to match repeated fields). - @@protoc_insertion_point(global_scope|imports). - Fixup proto2 syntax extension support. - Move all startup code to +initialize so it happen on class usage and not app startup. - Have generated headers use forward declarations and move imports into generated code, reduces what is need at compile time to speed up compiled and avoid pointless rippling of rebuilds. --- objectivec/GPBCodedInputStream.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'objectivec/GPBCodedInputStream.h') diff --git a/objectivec/GPBCodedInputStream.h b/objectivec/GPBCodedInputStream.h index db39c268..e9b27e22 100644 --- a/objectivec/GPBCodedInputStream.h +++ b/objectivec/GPBCodedInputStream.h @@ -66,7 +66,9 @@ - (void)readMessage:(GPBMessage *)message extensionRegistry:(GPBExtensionRegistry *)extensionRegistry; -// Reads and discards a single field, given its tag value. +// Reads and discards a single field, given its tag value. Returns NO if the +// tag is an endgroup tag, in which case nothing is skipped. Otherwise, +// returns YES. - (BOOL)skipField:(int32_t)tag; // Reads and discards an entire message. This will read either until EOF @@ -74,8 +76,8 @@ - (void)skipMessage; // Verifies that the last call to readTag() returned the given tag value. -// This is used to verify that a nested group ended with the correct -// end tag. +// This is used to verify that a nested group ended with the correct end tag. +// Throws NSParseErrorException if value does not match the last tag. - (void)checkLastTagWas:(int32_t)value; @end -- cgit v1.2.3