|
Derive-C
|
#include <derive-c/core/includes/def.h>#include "includes.h"#include <derive-c/core/alloc/def.h>#include <derive-c/core/self/def.h>#include <derive-c/container/vector/dynamic/template.h>#include <derive-c/core/self/undef.h>#include <derive-c/core/alloc/undef.h>#include <derive-c/core/includes/undef.h>Go to the source code of this file.
Data Structures | |
| struct | block_info |
| struct | SELF |
| An allocator that prints to stdout when it allocates or frees memory. More... | |
Macros | |
| #define | BLOCK_SIZE 65536 |
| A chunked bump allocator that allocates memory in fixed-size blocks. | |
| #define | BLOCK_VECTOR NS(NAME, block_vector) |
| #define | ITEM NS(NAME, block_info) |
| #define | ITEM_CLONE NS(NAME, block_info_clone) |
| #define | ITEM_DELETE NS(NAME, block_info_delete) |
| #define | ITEM_DEBUG NS(NAME, block_info_debug) |
| #define | INTERNAL_NAME BLOCK_VECTOR |
Functions | |
| DC_STATIC_ASSERT (BLOCK_SIZE > 0, "Block size must be larger than zero") | |
| static block_info | block_info_clone (block_info const *self) |
| static void | block_info_delete (block_info *) |
| static void | block_info_debug (block_info const *, dc_debug_fmt, FILE *) |
| static DC_PUBLIC SELF | new (ref alloc_ref) |
| static DC_INTERNAL void *PRIV | allocate_new_blocks (SELF *self, size_t size) |
| static DC_PUBLIC void * | allocate_uninit (SELF *self, size_t size) |
| static DC_PUBLIC void * | allocate_zeroed (SELF *self, size_t size) |
| static DC_PUBLIC void | deallocate (SELF *self, void *ptr, size_t size) |
| static DC_PUBLIC void * | reallocate (SELF *self, void *ptr, size_t old_size, size_t new_size) |
| static DC_PUBLIC void | reset (SELF *self) |
| static DC_PUBLIC void | delete (SELF *self) |
| static DC_PUBLIC void | debug (SELF const *self, dc_debug_fmt fmt, FILE *stream) |
| DC_TRAIT_REFERENCABLE_BY_PTR (SELF) | |
| DC_TRAIT_ALLOC (SELF) | |
| #define BLOCK_SIZE 65536 |
A chunked bump allocator that allocates memory in fixed-size blocks.
Definition at line 15 of file template.h.
Definition at line 20 of file template.h.
| #define INTERNAL_NAME BLOCK_VECTOR |
Definition at line 40 of file template.h.
| #define ITEM NS(NAME, block_info) |
Definition at line 36 of file template.h.
| #define ITEM_CLONE NS(NAME, block_info_clone) |
Definition at line 37 of file template.h.
| #define ITEM_DEBUG NS(NAME, block_info_debug) |
Definition at line 39 of file template.h.
| #define ITEM_DELETE NS(NAME, block_info_delete) |
Definition at line 38 of file template.h.
|
static |
Definition at line 63 of file template.h.
Definition at line 92 of file template.h.
Definition at line 117 of file template.h.
|
static |
Definition at line 29 of file template.h.
|
static |
Definition at line 33 of file template.h.
|
static |
Definition at line 32 of file template.h.
| DC_STATIC_ASSERT | ( | BLOCK_SIZE | , |
| 0 | , | ||
| "Block size must be larger than zero" | ) |
| DC_TRAIT_ALLOC | ( | SELF | ) |
| DC_TRAIT_REFERENCABLE_BY_PTR | ( | SELF | ) |
Definition at line 127 of file template.h.
|
static |
Definition at line 212 of file template.h.
Definition at line 205 of file template.h.
Definition at line 53 of file template.h.
Definition at line 137 of file template.h.
Definition at line 186 of file template.h.