Edit

Share via


BlittableValueType.StrideOf Method

Definition

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.

Applies to