Re: How do I make NSData from cabron-Handle
Re: How do I make NSData from cabron-Handle
- Subject: Re: How do I make NSData from cabron-Handle
- From: Thomas Jahnsen <email@hidden>
- Date: Mon, 28 Jan 2002 00:26:40 +1000
That would get the first byte (presumed Handle is declared as void**, and
using the GCC convention of being able to dereference void* as char*) of the
data, and interpreting it as an address. I very seriously doubt you would
like that ;)
---
To put things straight, a Handle is a pointer to a Ptr
#define Handle *Ptr
and a Ptr is a pointer to a char:
#define Ptr *char
So a Handle is **char.
Converting to void* would be: (void*) *handle (compilers complain on
implicit conversion).
-Thomas Jahnsen