IOS-2794 Return own bytes, avoid copy

IOS-2794
Dirk Zimmermann 2 years ago
parent 2763eb75f2
commit 5d20e18bf8

@ -84,8 +84,7 @@ NS_ASSUME_NONNULL_BEGIN
__weak typeof(self) weakSelf = self;
dispatch_sync(self.queue, ^{
typeof(self) strongSelf = weakSelf;
NSData *copy = strongSelf.data.copy;
copyOfBytes = copy.bytes;
copyOfBytes = strongSelf.data.bytes;
});
return copyOfBytes;

Loading…
Cancel
Save