memory.h (402B)
1 #pragma once 2 3 #include "types.h" 4 5 typedef enum memory_tag { 6 MEMORY_TAG_UNKNOWN, 7 MEMORY_TAG_RENDER, 8 MEMORY_TAG_STRING, 9 MEMORY_TAG_JOB, 10 MEMORY_TAG_QUEUE, 11 MEMORY_TAG_MAX_TAGS 12 } memory_tag; 13 14 void *s_alloc(u64 size, memory_tag tag); 15 16 void s_free(void *mem, u64 size, memory_tag tag); 17 18 void s_zeroMemory(void *mem, u64 size); 19 void s_copyMemory(void *dst, const void *src, u64 size); 20