Implemented Scratchpad_ReserveAligned and refactored internally
This commit is contained in:
parent
7d8ba6fc28
commit
c2c3c2d96e
2 changed files with 52 additions and 18 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue