BlittableValueType.StrideOf Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| StrideOf<T>(T) |
Returns the size of the specified value type in bytes. |
| StrideOf<T>(T[,,]) |
Returns the size of a single array element in bytes. |
| StrideOf<T>(T[,]) |
Returns the size of a single array element in bytes. |
| StrideOf<T>(T[]) |
Returns the size of a single array element in bytes. |
StrideOf<T>(T)
Returns the size of the specified value type in bytes.
public static int StrideOf<T>(T type);
static member StrideOf : 'T -> int
Type Parameters
- T
The value type. Must be blittable.
Parameters
- type
- T
An instance of the value type.
Returns
An integer, specifying the size of the type in bytes.
Exceptions
Occurs when type is not blittable.
Applies to
StrideOf<T>(T[,,])
Returns the size of a single array element in bytes.
public static int StrideOf<T>(T[,,] type);
static member StrideOf : 'T[,,] -> int
Type Parameters
- T
The value type.
Parameters
- type
- T[,,]
An instance of the value type.
Returns
An integer, specifying the size of the type in bytes.
Exceptions
Occurs when type is not blittable.
Applies to
StrideOf<T>(T[,])
Returns the size of a single array element in bytes.
public static int StrideOf<T>(T[,] type);
static member StrideOf : 'T[,] -> int
Type Parameters
- T
The value type.
Parameters
- type
- T[,]
An instance of the value type.
Returns
An integer, specifying the size of the type in bytes.
Exceptions
Occurs when type is not blittable.
Applies to
StrideOf<T>(T[])
Returns the size of a single array element in bytes.
public static int StrideOf<T>(T[] type);
static member StrideOf : 'T[] -> int
Type Parameters
- T
The value type.
Parameters
- type
- T[]
An instance of the value type.
Returns
An integer, specifying the size of the type in bytes.
Exceptions
Occurs when type is not blittable.