Click or drag to resize

MemoryHelperFromNativeArrayManaged, Native(IntPtr, Int32, Boolean) Method

Marshals an array of managed values from a c-style unmanaged array (void*). This also can optionally marshal from an unmanaged array of pointers (void**).

Namespace: Internal.Assimp
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntax
C#
public static Managed[] FromNativeArray<Managed, Native>(
	IntPtr nativeArray,
	int length,
	bool arrayOfPointers = false
)
where Managed : class, new(), Object, IMarshalable<Managed, Native>
where Native : struct, new()

Parameters

nativeArray  IntPtr
Pointer to unmanaged memory
length  Int32
Number of elements to marshal
arrayOfPointers  Boolean  (Optional)
True if the pointer is an array of pointers, false otherwise.

Type Parameters

Managed
Managed type
Native
Native type

Return Value

Managed
Marshaled managed values
See Also