aboutsummaryrefslogtreecommitdiff
path: root/objectivec/GPBCodedOutputStream.h
diff options
context:
space:
mode:
authorThomas Van Lenten <thomasvl@google.com>2015-06-16 16:45:14 -0400
committerThomas Van Lenten <thomasvl@google.com>2015-06-16 17:04:50 -0400
commit8c88957ef375f3b739b6e72ea5c2fb71b12e1fc2 (patch)
tree31b4561aae2a11b1a9b4b7010dc9df10c52a4d72 /objectivec/GPBCodedOutputStream.h
parent4cbb612299eaf8259db25f5dcda46022fbd1db54 (diff)
downloadprotobuf-8c88957ef375f3b739b6e72ea5c2fb71b12e1fc2.tar.gz
protobuf-8c88957ef375f3b739b6e72ea5c2fb71b12e1fc2.tar.bz2
protobuf-8c88957ef375f3b739b6e72ea5c2fb71b12e1fc2.zip
Add nonnil markup to ObjC library.
Add the clang annotations to the objc library and generated code to help with Swift bridging and compiler checks.
Diffstat (limited to 'objectivec/GPBCodedOutputStream.h')
-rw-r--r--objectivec/GPBCodedOutputStream.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/objectivec/GPBCodedOutputStream.h b/objectivec/GPBCodedOutputStream.h
index 9a237b6e..a5aef170 100644
--- a/objectivec/GPBCodedOutputStream.h
+++ b/objectivec/GPBCodedOutputStream.h
@@ -44,6 +44,8 @@
@class GPBUInt64Array;
@class GPBUnknownFieldSet;
+NS_ASSUME_NONNULL_BEGIN
+
@interface GPBCodedOutputStream : NSObject
// Creates a new stream to write into data. Data must be sized to fit or it
@@ -53,12 +55,10 @@
+ (instancetype)streamWithOutputStream:(NSOutputStream *)output
bufferSize:(size_t)bufferSize;
-- (instancetype)initWithOutputStream:(NSOutputStream *)output;
- (instancetype)initWithData:(NSMutableData *)data;
+- (instancetype)initWithOutputStream:(NSOutputStream *)output;
- (instancetype)initWithOutputStream:(NSOutputStream *)output
bufferSize:(size_t)bufferSize;
-- (instancetype)initWithOutputStream:(NSOutputStream *)output
- data:(NSMutableData *)data;
- (void)flush;
@@ -294,6 +294,8 @@ size_t GPBComputeEnumSize(int32_t fieldNumber, int32_t value)
CF_EXTERN_C_END
+NS_ASSUME_NONNULL_END
+
// Write methods for types that can be in packed arrays.
//%PDDM-DEFINE _WRITE_PACKABLE_DECLS(NAME, ARRAY_TYPE, TYPE)
//%- (void)write##NAME:(int32_t)fieldNumber value:(TYPE)value;