Skip to content
Discussion options

You must be logged in to vote

Yeah, this is used to make fast temporary memory allocations.
The temporary_memory struct has 3 properties:

  1. A pointer to a memory_arena
  2. A pointer to a memory block (defined by the platform)
  3. Used space

This thing is meant to be used in this way:

  1. Make a temporary allocation
  2. Do some work
  3. Roll the arena base back when done (this frees the memory super fast).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by btgvesta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants