mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-16 14:10:11 +01:00
20 lines
455 B
C
20 lines
455 B
C
#pragma once
|
|
#include <stdint.h>
|
|
|
|
typedef uint32_t alo_size_t;
|
|
|
|
struct alo_pool_s;
|
|
|
|
struct alo_pool_s* aloPoolCreate(alo_size_t size, int expected_allocations, alo_size_t min_alignment);
|
|
void aloPoolDestroy(struct alo_pool_s*);
|
|
|
|
typedef struct {
|
|
alo_size_t offset;
|
|
alo_size_t size;
|
|
|
|
int index;
|
|
} alo_block_t;
|
|
|
|
alo_block_t aloPoolAllocate(struct alo_pool_s*, alo_size_t size, alo_size_t alignment);
|
|
void aloPoolFree(struct alo_pool_s *pool, int index);
|