-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
174 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[//]: # (This file is automatically generated by Cute Framework's docs parser.) | ||
[//]: # (Do not edit this file by hand!) | ||
[//]: # (See: https://github.com/RandyGaul/cute_framework/blob/master/samples/docs_parser.cpp) | ||
[](../header.md ':include') | ||
|
||
# cf_arena_free | ||
|
||
Category: [allocator](/api_reference?id=allocator) | ||
GitHub: [cute_alloc.h](https://github.com/RandyGaul/cute_framework/blob/master/include/cute_alloc.h) | ||
--- | ||
|
||
Frees the most recent allocation(s) from the arena. | ||
|
||
```cpp | ||
void cf_arena_free(CF_Arena* arena, int ptr); | ||
``` | ||
Parameters | Description | ||
--- | --- | ||
arena | The arena from which to free memory. | ||
size | The size of the most recent allocation to free. | ||
## Remarks | ||
This supports freeing memory in a Last-In-First-Out (LIFO) order, meaning | ||
only the most recent allocation(s) can be freed. It does not support freeing allocations in | ||
arbitrary order. Minimal error checking is performed, so only call this function if you | ||
know what you're doing, otherwise you'll get memory corruption issues. | ||
## Related Pages | ||
[cf_arena_init](/allocator/cf_arena_init.md) | ||
[cf_arena_alloc](/allocator/cf_arena_alloc.md) | ||
[cf_arena_reset](/allocator/cf_arena_reset.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[//]: # (This file is automatically generated by Cute Framework's docs parser.) | ||
[//]: # (Do not edit this file by hand!) | ||
[//]: # (See: https://github.com/RandyGaul/cute_framework/blob/master/samples/docs_parser.cpp) | ||
[](../header.md ':include') | ||
|
||
# cf_destroy_arena | ||
|
||
Category: [allocator](/api_reference?id=allocator) | ||
GitHub: [cute_alloc.h](https://github.com/RandyGaul/cute_framework/blob/master/include/cute_alloc.h) | ||
--- | ||
|
||
Free's up all resources used by the allocator. | ||
|
||
```cpp | ||
void cf_destroy_arena(CF_Arena* arena); | ||
``` | ||
Parameters | Description | ||
--- | --- | ||
arena | The arena to free. | ||
## Related Pages | ||
[cf_arena_init](/allocator/cf_arena_init.md) | ||
[cf_arena_alloc](/allocator/cf_arena_alloc.md) | ||
[cf_arena_reset](/allocator/cf_arena_reset.md) | ||
[cf_arena_free](/allocator/cf_arena_free.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters