ILNumerics - Technical Application Development
Assembly: ILNumerics.Core (in ILNumerics.Core.dll) Version: 5.5.0.0 (5.5.7503.3146)
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
Field Value
Type: UInt32Remarks
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