MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCOLLADA / allocMemory

Method allocMemory

COLLADAFramework/include/COLLADAFWArray.h:146–150  ·  view source on GitHub ↗

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.*/

Source from the content-addressed store, hash-verified

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().*/

Callers 15

MorphControllerMethod · 0.45
SkinControllerMethod · 0.45
cloneArrayMethod · 0.45
end__animation_clipMethod · 0.45
begin__polylistMethod · 0.45
begin__linestripsMethod · 0.45
begin__polygonsMethod · 0.45
begin__tristripsMethod · 0.45
begin__trifansMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected