|
Objectively
Ultra-lightweight object oriented framework for GNU C.
|
#include <Pointer.h>
Properties | |
| Consumer | destroy |
An optional destructor that, if set, is called on dealloc. | |
| Object | object |
| The superclass. | |
| ident | pointer |
| The backing pointer. | |
Properties inherited from Object | |
| Class * | clazz |
| Every instance of Object begins with a pointer to its Class. | |
| unsigned int | magic |
| A header to allow introspection of Object types. | |
Methods | |
| Class * | _Pointer (void) |
| The Pointer archetype. | |
| Pointer * | initWithBytes (Pointer *self, const uint8_t *bytes, size_t length) |
Initializes this Pointer by copying length of bytes. | |
| Pointer * | initWithPointer (Pointer *self, ident pointer, Consumer destroy) |
| Initializes this Pointer. | |
Methods inherited from Object | |
| Class * | _Object (void) |
| The Object archetype. | |
| Object * | copy (const Object *self) |
| Creates a shallow copy of this Object. | |
| void | dealloc (Object *self) |
| Frees all resources held by this Object. | |
| String * | description (const Object *self) |
| int | hash (const Object *self) |
| Object * | init (Object *self) |
| Initializes this Object. | |
| bool | isEqual (const Object *self, const Object *other) |
| Tests equality of the other Object. | |
| bool | isKindOfClass (const Object *self, const Class *clazz) |
| Tests for Class hierarchy membership. | |
Protected Attributes | |
| PointerInterface * | interface |
| The interface. | |
Protected Attributes inherited from Object | |
| ObjectInterface * | interface |
| The interface. | |
Related Symbols | |
| OBJECTIVELY_EXPORT Pointer * | ptr (ident pointer, Consumer destroy) |
| A convenience function for instantiating Pointers. | |
| Consumer Pointer::destroy |
|
protected |
| Class * _Pointer | ( | void | ) |
The Pointer archetype.
Definition at line 137 of file Pointer.c.
Initializes this Pointer by copying length of bytes.
| self | The Pointer. |
| bytes | The bytes to copy. |
| length | The count of bytes to copy. |
NULL on error. dealloc. Definition at line 87 of file Pointer.c.
|
related |
A convenience function for instantiating Pointers.
| pointer | The backing pointer. |
| destroy | An optional destructor, or NULL. |
NULL on error. Definition at line 157 of file Pointer.c.