KasmVNC/common/network/webudp/WuArena.h
Lauri Kasanen 3b40a92548 Udp
2022-07-26 10:38:14 +00:00

15 lines
294 B
C

#pragma once
#include <stdint.h>
struct WuArena {
uint8_t* memory;
int32_t length;
int32_t capacity;
};
void WuArenaInit(WuArena* arena, int32_t capacity);
void* WuArenaAcquire(WuArena* arena, int32_t blockSize);
void WuArenaReset(WuArena* arena);
void WuArenaDestroy(WuArena* arena);