Click or drag to resize

MemoryHelperToNativeArrayManaged, Native(IReadOnlyCollectionManaged, Boolean) Method

Marshals an array of managed values to a c-style unmanaged array (void*). This also can optionally marshal to 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 IntPtr ToNativeArray<Managed, Native>(
	IReadOnlyCollection<Managed> managedColl,
	bool arrayOfPointers = false
)
where Managed : class, new(), Object, IMarshalable<Managed, Native>
where Native : struct, new()

Parameters

managedColl  IReadOnlyCollectionManaged
Collection of managed values
arrayOfPointers  Boolean  (Optional)
True if the pointer is an array of pointers, false otherwise.

Type Parameters

Managed
Managed type
Native
Native type

Return Value

IntPtr
Pointer to unmanaged memory
See Also