Objectively 1.0.0
Ultra-lightweight object oriented framework for GNU C.
|
#include <Value.h>
Properties | |
ValueDestructor | destructor |
An optional destructor that, if set, is called on dealloc . More... | |
Object | object |
The superclass. More... | |
ident | value |
The backing value. More... | |
![]() | |
Class * | clazz |
Every instance of Object begins with a pointer to its Class. More... | |
Methods | |
Class * | _Value (void) |
The Value archetype. More... | |
Value * | initWithBytes (Value *self, const uint8_t *bytes, size_t length) |
Initializes this Value by copying length of bytes . More... | |
Value * | initWithValue (Value *self, ident value) |
Initializes this Value. More... | |
![]() | |
Class * | _Object (void) |
The Object archetype. More... | |
Object * | copy (const Object *self) |
Creates a shallow copy of this Object. More... | |
void | dealloc (Object *self) |
Frees all resources held by this Object. More... | |
String * | description (const Object *self) |
int | hash (const Object *self) |
Object * | init (Object *self) |
Initializes this Object. More... | |
_Bool | isEqual (const Object *self, const Object *other) |
Tests equality of the other Object. More... | |
_Bool | isKindOfClass (const Object *self, const Class *clazz) |
Tests for Class hierarchy membership. More... | |
Protected Attributes | |
ValueInterface * | interface |
The interface. More... | |
![]() | |
ObjectInterface * | interface |
The interface. More... | |
ValueDestructor Value::destructor |
Class * _Value | ( | void | ) |
The Value archetype.
Definition at line 136 of file Value.c.
Initializes this Value by copying length
of bytes
.
self | The Value. |
bytes | The bytes to copy. |
length | The count of bytes to copy. |
NULL
on error. dealloc
. Definition at line 87 of file Value.c.