MemoryHelperMarshalStructureT(IntPtr) Method |
Convienence method for marshaling a pointer to a structure. Only use if the type is not blittable, otherwise
use the read methods for blittable types.
Namespace: Internal.AssimpAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntaxpublic static T MarshalStructure<T>(
IntPtr ptr
)
where T : struct, new()
Parameters
- ptr IntPtr
- Pointer to marshal
Type Parameters
- T
- Struct type
Return Value
TThe marshaled structure
See Also