diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2022-09-02 08:48:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-02 08:48:28 -0400 |
commit | 74190b50263bb329c928203cdaec68e309d4e1ea (patch) | |
tree | 15875b1dc2b6d562a04dd1b3eb2ba80293a1bdd3 /SmartDeviceLink/private/SDLV1ProtocolHeader.m | |
parent | aba5ba83d902a1c5e7e68915180eaae319855430 (diff) | |
parent | 1d50cc2f21bcd1dbbe2b810e058c757a1f516c96 (diff) | |
download | sdl_ios-74190b50263bb329c928203cdaec68e309d4e1ea.tar.gz |
Merge pull request #2100 from smartdevicelink/issue-17-SDLProtocol-message-parsing
Update Protocol Message Parsing to Use a State Machine
Diffstat (limited to 'SmartDeviceLink/private/SDLV1ProtocolHeader.m')
-rw-r--r-- | SmartDeviceLink/private/SDLV1ProtocolHeader.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/SmartDeviceLink/private/SDLV1ProtocolHeader.m b/SmartDeviceLink/private/SDLV1ProtocolHeader.m index ba6474481..cfbb6b1fc 100644 --- a/SmartDeviceLink/private/SDLV1ProtocolHeader.m +++ b/SmartDeviceLink/private/SDLV1ProtocolHeader.m @@ -4,6 +4,8 @@ #import "SDLV1ProtocolHeader.h" +#import "SDLMacros.h" + const int ProtocolV1HeaderByteSize = 8; NS_ASSUME_NONNULL_BEGIN @@ -82,6 +84,9 @@ NS_ASSUME_NONNULL_BEGIN return description; } +- (BOOL)isEqual:(SDLV1ProtocolHeader *)object { + return (self.hash == object.hash); +} @end |