Allocates memory for @a size elements of type DataType. Must not be called more than once, without calling releaseMemory() in between. The memory must be released using releaseMemory(). @param size The size of the array @param flags Flags that allow to control, how the memory should be released.*/
| 144 | @param size The size of the array |
| 145 | @param flags Flags that allow to control, how the memory should be released.*/ |
| 146 | void allocMemory ( size_t count, int flags = DEFAULT_ALLOC_FLAGS ) |
| 147 | { |
| 148 | setData ( new Type[count], 0, count ); |
| 149 | mFlags |= flags; |
| 150 | } |
| 151 | |
| 152 | /** Releases the memory that has been allocated by allocateMemory(). |
| 153 | Must not be called, if the memory has not been allocated by allocateMemory().*/ |
no outgoing calls
no test coverage detected