MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / Queue_Init

Function Queue_Init

src/Queue.c:7–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include "Queue.h"
6
7void Queue_Init(struct Queue* queue, cc_uint32 structSize) {
8 queue->entries = NULL;
9 queue->structSize = structSize;
10 queue->capacity = 0;
11 queue->mask = 0;
12 queue->count = 0;
13 queue->head = 0;
14 queue->tail = 0;
15}
16
17void Queue_Clear(struct Queue* queue) {
18 if (!queue->entries) return;

Callers 2

Queue_ClearFunction · 0.85
AllocStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected