Implemented Scratchpad_ReserveAligned and refactored internally

This commit is contained in:
vegowotenks 2024-10-01 21:37:05 +02:00
parent 7d8ba6fc28
commit c2c3c2d96e
2 changed files with 52 additions and 18 deletions

View file

@ -21,6 +21,7 @@ typedef struct Scratchpad_s {
int Scratchpad_Create(Scratchpad* target, size_t capacity, allocator_t* allocator);
void* Scratchpad_Reserve(Scratchpad* pad, size_t size);
void* Scratchpad_ReserveAligned(Scratchpad* pad, size_t amount, size_t alignment);
int Scratchpad_Reclaim(Scratchpad* pad, void* pointer, size_t length);
void Scratchpad_Reset(Scratchpad* pad);