Click or drag to resize

MemoryHelperFromNativeArrayT(IntPtr, Int32) Method

Marshals an array of blittable structs from a c-style unmanaged array (void*). This should not be used on non-blittable types that require marshaling by the runtime (e.g. has MarshalAs attributes).

Namespace: Internal.Assimp
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntax
C#
public static T[] FromNativeArray<T>(
	IntPtr nativeArray,
	int length
)
where T : struct, new()

Parameters

nativeArray  IntPtr
Pointer to unmanaged memory
length  Int32
Number of elements to read

Type Parameters

T
Struct type

Return Value

T
Managed array
See Also