You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
367 B
C
17 lines
367 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
struct WuQueue {
|
|
int32_t itemSize;
|
|
int32_t start;
|
|
int32_t length;
|
|
int32_t capacity;
|
|
uint8_t* items;
|
|
};
|
|
|
|
WuQueue* WuQueueCreate(int32_t itemSize, int32_t capacity);
|
|
void WuQueueInit(WuQueue* q, int32_t itemSize, int32_t capacity);
|
|
void WuQueuePush(WuQueue* q, const void* item);
|
|
int32_t WuQueuePop(WuQueue* q, void* item);
|