void List_Initialize(List* list, List_ElementDisposer elementDisposer) { assert(list != NULL); list->Cursor = 0; list->Count = 0; list->Disposer = elementDisposer; list->DefaultIterator = Allocate(List_Iterator); List_InitializeIterator(list->DefaultIterator, list); Array_Initialize(&list->DataStore, 64); }
void Stack_Initialize(Stack* stack, uint64 size) { stack->Pointer = 0; Array_Initialize(&stack->Data, size); }