IOS-1704 Nicer method names. IOS-1704
authorDirk Zimmermann <dz@pep.security>
Fri, 05 Jul 2019 14:10:21 +0200
branchIOS-1704
changeset 105027b602c274a1
parent 1049 b6dd6a632e03
child 1051 ddf1631d429e
IOS-1704 Nicer method names.
pEpObjCAdapter/PEPAttachment.m
pEpObjCAdapterFramework/PEPAttachment.h
     1.1 --- a/pEpObjCAdapter/PEPAttachment.m	Fri Jul 05 14:10:21 2019 +0200
     1.2 +++ b/pEpObjCAdapter/PEPAttachment.m	Fri Jul 05 14:10:21 2019 +0200
     1.3 @@ -12,7 +12,7 @@
     1.4  
     1.5  @interface PEPAttachment ()
     1.6  
     1.7 -/** Blob (binary data) _with_ 0-terminator. */
     1.8 +/** Internal blob (binary data) _with_ 0-terminator. */
     1.9  @property (nonatomic, nonnull) NSData *data;
    1.10  
    1.11  @end
    1.12 @@ -32,12 +32,12 @@
    1.13      return self;
    1.14  }
    1.15  
    1.16 -- (NSData *)dataWith0Terminator
    1.17 +- (NSData *)dataWithZeroTerminator
    1.18  {
    1.19      return self.data;
    1.20  }
    1.21  
    1.22 -- (NSData *)dataWithout0Terminator
    1.23 +- (NSData *)dataWithoutZeroTerminator
    1.24  {
    1.25      return [NSData dataWithBytes:self.data.bytes length:self.size];
    1.26  }
     2.1 --- a/pEpObjCAdapterFramework/PEPAttachment.h	Fri Jul 05 14:10:21 2019 +0200
     2.2 +++ b/pEpObjCAdapterFramework/PEPAttachment.h	Fri Jul 05 14:10:21 2019 +0200
     2.3 @@ -15,12 +15,12 @@
     2.4  /**
     2.5   The blob (binary data) of this attachment, terminated by one \0.
     2.6   */
     2.7 -@property (readonly, nonnull) NSData *dataWith0Terminator;
     2.8 +@property (readonly, nonnull) NSData *dataWithZeroTerminator;
     2.9  
    2.10  /**
    2.11   The blob (binary data) of this attachment, _without_ \0 terminator.
    2.12   */
    2.13 -@property (readonly, nonnull) NSData *dataWithout0Terminator;
    2.14 +@property (readonly, nonnull) NSData *dataWithoutZeroTerminator;
    2.15  
    2.16  /**
    2.17   The size (length in bytes) of the binary blob _without_ the trailing \0,