Re: Partially release NSMutableData

2010-08-05 Thread A.M.
On Aug 4, 2010, at 9:02 AM, Marcus Karlsson wrote: > Hello. > > The subject of this thread is probably somewhat weird at first but let me > explain. > > Let's say that I'm receiving data from the network and need to store it in a > buffer. I need to store it until enough data has been collect

Re: Partially release NSMutableData

2010-08-05 Thread Graham Cox
On 04/08/2010, at 11:02 PM, Marcus Karlsson wrote: > 3. Use a single NSMutableData object. Once enough data has arrived move the > data that may have been appended later to the beginning and adjust the > capacity. > > Any opinions on which one to use or ideas on even better ones? This one's