Updated some CS:GO gamedata.
1 #ifndef _INCLUDE_KNIGHT_KE_PAGE_ALLOCATOR_H_
2 #define _INCLUDE_KNIGHT_KE_PAGE_ALLOCATOR_H_
12 * @brief Creates a page allocator.
14 * @return New page allocator.
16 extern KePageAllocator *KE_CreatePageAllocator();
19 * @brief Destroys a page allocator, freeing all live pages it owns.
21 * @param Page allocator.
23 extern void KE_DestroyPageAllocator(KePageAllocator *alloc);
26 * @brief Allocates a page of memory.
28 * @param alloc Page allocator.
29 * @return Page of memory.
31 extern void *KE_PageAlloc(KePageAllocator *alloc);
34 * @brief Frees a page of memory.
36 * @param alloc Page allocator.
37 * @param page Page of memory.
39 extern void KE_PageFree(KePageAllocator *alloc, void *page);
42 * @brief Returns the size of a page.
44 * @param alloc Page allocator.
47 extern size_t KE_PageSize(KePageAllocator *alloc);
50 #endif //_INCLUDE_KNIGHT_KE_PAGE_ALLOCATOR_H_