Newbie memory question
Newbie memory question
- Subject: Newbie memory question
- From: email@hidden
- Date: Wed, 9 May 2007 22:08:08 +0200
Hello,
I have some data. I now need a generic pointer to the memory holding
the data, as well as the size of that memory block, in order to pass
the data to a function. How can I do this? I tried this to no avail:
NSData *testData = [NSKeyedUnarchiver unarchiveObjectWithFile:@"/testData"];
void *pointer = malloc(sizeof(testData));
pointer = [testData copy];
UInt32 size = (sizeof(pointer));
Please help.
Thanks.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden