| 
    Kohi Game Engine
    
   | 
 
Represents a ring queue of a particular size. Does not resize dynamically. Naturally, this is a first in, first out structure. More...
#include <ring_queue.h>
Data Fields | |
| u32 | length | 
| The current number of elements contained.  More... | |
| u32 | stride | 
| The size of each element in bytes.  More... | |
| u32 | capacity | 
| The total number of elements available.  More... | |
| void * | block | 
| The block of memory to hold the data.  More... | |
| b8 | owns_memory | 
| Indicates if the queue owns its memory block.  More... | |
| i32 | head | 
| The index of the head of the list.  More... | |
| i32 | tail | 
| The index of the tail of the list.  More... | |
Represents a ring queue of a particular size. Does not resize dynamically. Naturally, this is a first in, first out structure.
| void* block | 
The block of memory to hold the data.
| u32 capacity | 
The total number of elements available.
| i32 head | 
The index of the head of the list.
| u32 length | 
The current number of elements contained.
| b8 owns_memory | 
Indicates if the queue owns its memory block.
| u32 stride | 
The size of each element in bytes.
| i32 tail | 
The index of the tail of the list.