IOS-1704 Optimize? IOS-1704
authorDirk Zimmermann <dz@pep.security>
Mon, 08 Jul 2019 16:42:56 +0200
branchIOS-1704
changeset 105599c6a1474e4e
parent 1054 218c951fd469
child 1056 4f1b93272a76
IOS-1704 Optimize?
pEpObjCAdapter/PEPAttachment.m
     1.1 --- a/pEpObjCAdapter/PEPAttachment.m	Mon Jul 08 16:42:56 2019 +0200
     1.2 +++ b/pEpObjCAdapter/PEPAttachment.m	Mon Jul 08 16:42:56 2019 +0200
     1.3 @@ -39,6 +39,9 @@
     1.4  
     1.5  - (NSData *)dataWithoutZeroTerminator
     1.6  {
     1.7 +    // Maybe we can avoid this with `initWithBytesNoCopy`?
     1.8 +    // But then we have to take care of memory management without
     1.9 +    // creating ownership cycles.
    1.10      return [NSData dataWithBytes:self.data.bytes length:self.size];
    1.11  }
    1.12