ILNumerics Ultimate VS

BaseStorageT, LocalT, InT, OutT, RetT, StorageTSizeOfT Field

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Number of bytes used to store a single element of type T in memory [readonly].

Namespace:  ILNumerics.Core.StorageLayer
Assembly:  ILNumerics.Core (in ILNumerics.Core.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax

public static readonly uint SizeOfT

Field Value

Type: UInt32
Remarks

SizeOfT corresponds to the unmanged size of a single element of this array. This size corresponds to SizeOfT(T). Its value is cached here for performance reasons.

Note that the size of blittable types is the same on the managed as well as on the unmanaged part. For example, every element of type Int32 consumes 4 bytes in the unmanaged heap or on the managed stack.

(At least) one exception exists: Boolean elements in .NET are represented by 4 bytes on the managed side. ILNumerics, however, stores them more efficiently as single Byte in memory.

See Also

Reference