Kohi Game Engine
stack Struct Reference

A simple stack container. Elements may be pushed on or popped off of the stack only. More...

#include <stack.h>

Data Fields

u32 element_size
 The element size in bytes. More...
 
u32 element_count
 The current element count. More...
 
u32 allocated
 The total amount of currently-allocated memory. More...
 
void * memory
 The allocated memory block. More...
 

Detailed Description

A simple stack container. Elements may be pushed on or popped off of the stack only.

Field Documentation

◆ allocated

u32 allocated

The total amount of currently-allocated memory.

◆ element_count

u32 element_count

The current element count.

◆ element_size

u32 element_size

The element size in bytes.

◆ memory

void* memory

The allocated memory block.


The documentation for this struct was generated from the following file: