MemoryHelperMarshalSizeOfT Method |
Computes the size of the struct type using Marshal SizeOf. Only use if the type is not blittable, thus requiring marshaling by the runtime,
(e.g. has MarshalAs attributes), otherwise use the SizeOf methods for blittable types.
Namespace: Internal.AssimpAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntaxpublic static int MarshalSizeOf<T>()
where T : struct, new()
Type Parameters
- T
- Struct type
Return Value
Int32Size of the struct in bytes.
See Also