61 assert(size>0 && methods != NULL && resource != NULL) ;
94 static inline struct CNResource *
Define CNResource data structure.
struct CNResource * resource
Definition: CNObject.h:45
Forward declaration of data types.
CNDeallocateObjectFuncRef deallocFuncRef
Definition: CNObject.h:32
Root object.
Definition: CNObject.h:38
void(* CNDeallocateObjectFuncRef)(struct CNObject *dst)
Definition: CNObject.h:24
size_t sizeOfObject
Definition: CNObject.h:43
Methods for CNObject.
Definition: CNObject.h:29
void CNReleaseObject(struct CNObject *dst)
Release the object.
struct CNObjectMethods * methods
Definition: CNObject.h:47
static void CNRetainObject(struct CNObject *dst)
Retain the object.
Definition: CNObject.h:75
void * CNAllocateData(struct CNResource *resource, size_t size)
Allocate data memory.
unsigned long referenceCount
Definition: CNObject.h:41
static size_t CNSizeOfObject(const struct CNObject *src)
Get size of object.
Definition: CNObject.h:117
static struct CNResource * CNResourceOfObject(struct CNObject *src)
Get resource for the object.
Definition: CNObject.h:95
static struct CNObject * CNAllocateObject(size_t size, const struct CNObjectMethods *methods, struct CNResource *resource)
Allocate object.
Definition: CNObject.h:59
static const unsigned long CNReferenceCountForStaticObject
Definition: CNObject.h:21
static struct CNObjectMethods * CNMethodsOfObject(const struct CNObject *src)
Get methods for the object.
Definition: CNObject.h:106