#include <NvBlastTkTaskImpl.h>
Public Member Functions | |
| T * | allocate (size_t n) |
| void | clear () |
| void | initialize (T *block, size_t capacity) |
| T* Nv::Blast::LocalBuffer< T >::allocate | ( | size_t | n | ) | [inline] |
Returns the pointer to the first element of an array of n elements. Allocates a new block of memory when exhausted, its size being the larger of n and capacity set with initialize().
| void Nv::Blast::LocalBuffer< T >::clear | ( | ) | [inline] |
Release the additionally allocated memory blocks. The externally owned memory block remains untouched.
| void Nv::Blast::LocalBuffer< T >::initialize | ( | T * | block, | |
| size_t | capacity | |||
| ) | [inline] |
Set the externally owned memory block to start allocating from, with a size of capacity elements.