122 #define kBox_ItemType_(BOX) kxBox_ItemType_(BOX)
123 #define kBox_ItemSize_(BOX) kxBox_ItemSize_(BOX)
124 #define kBox_Data_(BOX) kxBox_Data_(BOX)
127 #define kBox_As_(BOX, TYPE) kxBox_As_(BOX, TYPE)
133 #include <kApi/Data/kBox.x.h>
kStatus kBox_Construct(kBox *box, kType itemType, kAlloc allocator)
Constructs a kBox object.
Represents an unsigned integer that can store a pointer address.
Abstract base class for memory allocator types.
kStatus kBox_Assign(kBox box, kBox source)
Copies the value contained within the source box into this box.
kType kBox_ItemType(kBox box)
Returns the box item type.
Core Zen type declarations.
kStatus kBox_Zero(kBox box)
Sets all box element bits to zero.
Represents an instance of a value type as an object.
void * kBox_Data(kBox box)
Returns a pointer to the box item buffer.
Represents metadata about a type (class, interface, or value).
Represents an error code.
kStatus kBox_SetItem(kBox box, const void *item)
Sets the box value.
kSize kBox_ItemSize(kBox box)
Returns the box item size.
kStatus kBox_Allocate(kBox box, kType itemType)
Reallocates the internal box item buffer.
kStatus kBox_Item(kBox box, void *item)
Gets the box value.