Allocateur avec buffer pré-alloué. Plus de détails...
#include <arcane/utils/SmallArray.h>
Fonctions membres publiques | |
StackMemoryAllocator (void *buf, size_t size) | |
bool | hasRealloc (MemoryAllocationArgs) const final |
AllocatedMemoryInfo | allocate (MemoryAllocationArgs args, Int64 new_size) final |
AllocatedMemoryInfo | reallocate (MemoryAllocationArgs args, AllocatedMemoryInfo current_ptr, Int64 new_size) final |
void | deallocate (MemoryAllocationArgs args, AllocatedMemoryInfo ptr) final |
Int64 | adjustedCapacity (MemoryAllocationArgs, Int64 wanted_capacity, Int64) const final |
size_t | guaranteedAlignment (MemoryAllocationArgs) const final |
Attributs privés | |
void * | m_preallocated_buffer = nullptr |
Int64 | m_preallocated_size = 0 |
Allocateur avec buffer pré-alloué.
Le buffer pré-alloué m_preallocated_buffer est utilisé lorsque la taille demandée pour l'allocation est inférieure ou égale à m_preallocated_size.
Le buffer utilisé doit rester valide durant toute la durée de vie de l'allocateur.
Définition à la ligne 38 du fichier SmallArray.h.
|
inline |
Définition à la ligne 43 du fichier SmallArray.h.
|
inlinefinal |
Définition à la ligne 54 du fichier SmallArray.h.
|
final |
Définition à la ligne 34 du fichier SmallArray.cc.
|
final |
Définition à la ligne 90 du fichier SmallArray.cc.
|
inlinefinal |
Définition à la ligne 55 du fichier SmallArray.h.
|
inlinefinal |
Définition à la ligne 50 du fichier SmallArray.h.
|
final |
Définition à la ligne 51 du fichier SmallArray.cc.
Définition à la ligne 59 du fichier SmallArray.h.
|
private |
Définition à la ligne 60 du fichier SmallArray.h.