A small 'wrapper' for allocations that can be done on most OSes on the stack, but are just too large to fit in the stack on devices with a small stack such as the NDS. More...
#include <alloc_type.hpp>
Public Member Functions | |
| FORCEINLINE | operator T * () |
| Gets a pointer to the data stored in this wrapper. | |
| FORCEINLINE T * | operator-> () |
| Gets a pointer to the data stored in this wrapper. | |
| FORCEINLINE T * | EndOf () |
| Gets a pointer to the last data element stored in this wrapper. | |
Data Fields | |
| T | data [length] |
| Storing the data on the stack. | |
A small 'wrapper' for allocations that can be done on most OSes on the stack, but are just too large to fit in the stack on devices with a small stack such as the NDS.
So when it is possible a stack allocation is made, otherwise a heap allocation is made and this is freed once the struct goes out of scope.
| T | the type to make the allocation for | |
| length | the amount of items to allocate |
Definition at line 27 of file alloc_type.hpp.
| FORCEINLINE T* SmallStackSafeStackAlloc< T, length >::EndOf | ( | ) | [inline] |
Gets a pointer to the last data element stored in this wrapper.
Definition at line 70 of file alloc_type.hpp.
References SmallStackSafeStackAlloc< T, length >::data, and endof.
| FORCEINLINE SmallStackSafeStackAlloc< T, length >::operator T * | ( | ) | [inline] |
Gets a pointer to the data stored in this wrapper.
Definition at line 51 of file alloc_type.hpp.
References SmallStackSafeStackAlloc< T, length >::data.
| FORCEINLINE T* SmallStackSafeStackAlloc< T, length >::operator-> | ( | ) | [inline] |
Gets a pointer to the data stored in this wrapper.
Definition at line 60 of file alloc_type.hpp.
References SmallStackSafeStackAlloc< T, length >::data.
1.7.1