Re: Data Structure to Data
Re: Data Structure to Data
- Subject: Re: Data Structure to Data
- From: "Kyle Sluder" <email@hidden>
- Date: Fri, 18 Jan 2008 11:42:08 -0500
Why would CFData dereference the pointer? You're telling it "copy the
bytes at this address". Those bytes happen to be three unsigned ints,
a 255-byte array, and a pointer to an unsigned int. It's doing
exactly what you asked: copying the pointer. If it did anything else,
what you got out of the object would not be what you put in.
By the way, what do you mean the pointer goes null: *pixels (aka
pixels[0]) == NULL, or pixels == NULL? Are you dereferencing the
pointer on the same thread, in the same process, on the same machine?
Why aren't you just using an object for this?
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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