FROM : Alastair Houghton
DATE : Mon Nov 26 21:50:35 2007
On 26 Nov 2007, at 20:38, Paul Sargent <<email_removed>> wrote:
> Just to be clear, -subdataWithRange will make a copy of the data
> into it's own buffer, which the new NSData will own. Hence it'll be
> safe. Right?
It might not make an actual copy if you're using an immutable NSData,
but that's an implementation detail. The important thing is that it
will be safe.
Kind regards,
Alastair
--
http://alastairs-place.net
DATE : Mon Nov 26 21:50:35 2007
On 26 Nov 2007, at 20:38, Paul Sargent <<email_removed>> wrote:
> Just to be clear, -subdataWithRange will make a copy of the data
> into it's own buffer, which the new NSData will own. Hence it'll be
> safe. Right?
It might not make an actual copy if you're using an immutable NSData,
but that's an implementation detail. The important thing is that it
will be safe.
Kind regards,
Alastair
--
http://alastairs-place.net
| Related mails | Author | Date |
|---|---|---|
| Paul Sargent | Nov 26, 18:20 | |
| Alastair Houghton | Nov 26, 18:44 | |
| Sherm Pendley | Nov 26, 18:56 | |
| Alastair Houghton | Nov 26, 19:00 | |
| Paul Sargent | Nov 26, 21:38 | |
| Alastair Houghton | Nov 26, 21:50 |






Cocoa mail archive

