MemoryHelperFreeNativeArrayT Method |
Frees an unmanaged array and performs cleanup for each value. Optionally can free an array of pointers. This can be used on any type that can be
marshaled into unmanaged memory.
Namespace: Internal.AssimpAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntaxpublic static void FreeNativeArray<T>(
IntPtr nativeArray,
int length,
FreeNativeDelegate action,
bool arrayOfPointers = false
)
where T : struct, new()
Parameters
- nativeArray IntPtr
- Pointer to unmanaged memory
- length Int32
- Number of elements to free
- action FreeNativeDelegate
- Delegate that performs the necessary cleanup
- arrayOfPointers Boolean (Optional)
- True if the pointer is an array of pointers, false otherwise.
Type Parameters
- T
- Struct type
See Also