34typedef struct PointerInterface PointerInterface;
67struct PointerInterface {
72 ObjectInterface objectInterface;
84 Pointer *(*initWithBytes)(
Pointer *self,
const uint8_t *bytes,
size_t length);
static void destroy(Class *clazz)
Object is the root Class of The Objectively Class hierarchy.
Pointer * ptr(ident pointer, Consumer destroy)
OBJECTIVELY_EXPORT Class * _Pointer(void)
void * ident
The identity type, similar to Objective-C id.
#define OBJECTIVELY_EXPORT
void(* Consumer)(ident data)
The Consumer function type.
The runtime representation of a Class.
Object is the root Class of The Objectively Class hierarchy.
Pointers provide Object encapsulation for raw C pointers.
Object object
The superclass.
PointerInterface * interface
The interface.
ident pointer
The backing pointer.
Consumer destroy
An optional destructor that, if set, is called on dealloc.