I'm using an API that takes a
I don't think you're going to like the answers you get here. You seem to be cornered with respect to options.
CFDatais a CoreFoundation C-type and doesn't have a runtime to play with
void *to data, but has some padding at the beginning (likely a struct) that'll be difficult to mimic if you tried to create a
It's going to be very difficult to accomplish what you want without some clever, un-maintainable, and overall dangerous symbol hackery I won't even bother to get into.