summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLProtocolHeader.h
diff options
context:
space:
mode:
Diffstat (limited to 'SmartDeviceLink/SDLProtocolHeader.h')
-rw-r--r--SmartDeviceLink/SDLProtocolHeader.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/SmartDeviceLink/SDLProtocolHeader.h b/SmartDeviceLink/SDLProtocolHeader.h
index 407494e6c..97c405db2 100644
--- a/SmartDeviceLink/SDLProtocolHeader.h
+++ b/SmartDeviceLink/SDLProtocolHeader.h
@@ -37,6 +37,7 @@ typedef NS_ENUM(UInt8, SDLFrameData) {
SDLFrameData_ConsecutiveLastFrame = 0x00
};
+NS_ASSUME_NONNULL_BEGIN
@interface SDLProtocolHeader : NSObject <NSCopying> {
UInt8 _version;
@@ -54,9 +55,11 @@ typedef NS_ENUM(UInt8, SDLFrameData) {
@property (assign, nonatomic) UInt32 bytesInPayload;
- (instancetype)init;
-- (NSData *)data;
+- (nullable NSData *)data;
- (void)parse:(NSData *)data;
- (NSString *)description;
+ (__kindof SDLProtocolHeader *)headerForVersion:(UInt8)version;
@end
+
+NS_ASSUME_NONNULL_END