Click or drag to resize

MemoryHelperMarshalPointerT Method

Convienence method for marshaling a structure to a pointer. Only use if the type is not blittable, otherwise use the write methods for blittable types.

Namespace: Internal.Assimp
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntax
C#
public static void MarshalPointer<T>(
	 in T value,
	IntPtr ptr
)
where T : struct, new()

Parameters

value  T
Struct to marshal
ptr  IntPtr
Pointer to unmanaged chunk of memory which must be allocated prior to this call

Type Parameters

T
Struct type
See Also