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.AssimpAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntaxpublic 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
IntPtrPointer to unmanaged memory
See Also