Data Fields | |
| struct memarea_chunk_t * | next_chunk |
| size_t | mem_size |
| char * | next_mem |
| union { | |
| char mem [1] | |
| void * _void_for_alignment | |
| } | u |
struct memarea_chunk_t* memarea_chunk_t::next_chunk [read] |
Next chunk in this area. Only kept around so we can free it.
Referenced by alloc_chunk(), chunk_free_unchecked(), memarea_alloc(), memarea_assert_ok(), memarea_clear(), memarea_clear_freelist(), memarea_drop_all(), memarea_get_stats(), and memarea_owns_ptr().
| size_t memarea_chunk_t::mem_size |
How much RAM is available in u.mem, total?
Referenced by alloc_chunk(), memarea_alloc(), memarea_assert_ok(), and memarea_get_stats().
Next position in u.mem to allocate data at. If it's greater than or equal to mem+mem_size, this chunk is full.
Referenced by alloc_chunk(), chunk_free_unchecked(), memarea_alloc(), memarea_assert_ok(), memarea_clear(), and memarea_get_stats().
| char memarea_chunk_t::mem[1] |
Memory space in this chunk.
Referenced by alloc_chunk(), chunk_free_unchecked(), memarea_alloc(), memarea_assert_ok(), memarea_clear(), memarea_get_stats(), and memarea_owns_ptr().
Dummy; used to make sure mem is aligned.
1.5.6