Click or drag to resize

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.Assimp
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntax
C#
public static int MarshalSizeOf<T>()
where T : struct, new()

Type Parameters

T
Struct type

Return Value

Int32
Size of the struct in bytes.
See Also