1 #ifndef VIRTMEM_STATIC_ALLOC_H
2 #define VIRTMEM_STATIC_ALLOC_H
31 template <u
int32_t poolSize=VIRTMEM_DEFAULT_POOLSIZE,
typename Properties=DefaultAllocProperties>
34 char staticData[poolSize];
36 void doStart(
void) { }
37 void doSuspend(
void) { }
42 ::memcpy(data, &staticData[offset], size);
47 ::memcpy(&staticData[offset], data, size);
60 #endif // VIRTMEM_STATIC_ALLOC_H
contains all code from virtmem
Definition: base_alloc.cpp:22
Base template class for virtual memory allocators.
Definition: alloc.h:28
void setPoolSize(VPtrSize ps)
Sets the total size of the memory pool.
Definition: base_alloc.h:155
virtual memory class header
uint32_t VPtrSize
Numeric type used to store the size of a virtual memory block.
Definition: base_alloc.h:22
StaticVAllocP(void)
Constructs (but not initializes) the allocator.
Definition: static_alloc.h:53
StaticVAllocP StaticVAlloc
Shortcut to StaticVAllocP with default template arguments.
Definition: static_alloc.h:56
Virtual memory allocator that uses a static array (in regular RAM) as memory pool.
Definition: static_alloc.h:32