nsmutabledata
NSMutableData, process received data then delete from beginning/reuse buffer?
This may be an easy one. I\'m using GCDAsyncSocket to receive a variable amount of bytes representing discrete data chunks from a server which appear in a NSMutableData object.[详细]
2023-04-12 08:11 分类:问答memory leak with NSMutableData
I have a class for connecting with httprequests. I am getting a memory leak for \"NSMutableData\" altho I am releasing it in \"didFailWithError\" and in \"connectionDidFinishLoading\" of the connectio[详细]
2023-04-10 15:13 分类:问答How to append the bytes of a bit-field to NSMutableData
I have a struct typedef struct { int8_t foo: 1; } Bar; I have tried to append the bytes to a NSMutableData object like so:[详细]
2023-04-02 01:39 分类:问答Is it okay to call +[NSData dataWithData:] with an NSMutableData object?
Is it a problem for me to do the following to change a mutable data instance immutable? NSMutableData *mutData = [[NS开发者_开发百科MutableData alloc] init];[详细]
2023-03-23 06:33 分类:问答Use NSMutableData but appendData failed
When I init NSMutableData with 100 length,it append data failed. self.receiveData = [[NSMutableData alloc] initWithLength:100];[详细]
2023-03-17 09:59 分类:问答Class return NSMutabledata
I want to write a class which return NSMutableData, i have this code but couldn\'t manage how it return self. any help would be great.[详细]
2023-03-10 04:30 分类:问答EXC_BAD_ACCESS accessing an NSMutableData
I´m getting an EXC_BAD_ACCESS when I trying to acces to the data, I suppose it is because I trying to acces to the internal data, but I don´t know How to solve this, the code:[详细]
2023-03-07 11:35 分类:问答Leak during the creation of a NsMutableData
During the creation of a NSMutableData i have a leak. I release webData2 in the connectionDidFinishLoading...[详细]
2023-03-04 17:27 分类:问答How to return a value from pHp server script to NSMutableData (Objective C, iOS)
Ok, I\'m having trouble finding an answer to this that isn\'t just use JSON or ASIHTTPRequest.But my question is a little more specific, I think.I only program as a hobby, so I\'m no expert.With that[详细]
2023-02-18 05:35 分类:问答How can I avoid data corruption with multiple instances of NSUrlConnection
I have written an iOS app that calls NSUrlConnection multiple times to download image data from the web. Sometimes, one NSUrlConnection has not finished before the o开发者_如何学运维ther starts. I am[详细]
2023-01-28 04:56 分类:问答