Show / Hide Table of Contents

Class BlittableValueType<T>

Checks whether the specified type parameter is a blittable value type.

Inheritance
Object
BlittableValueType<T>
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: OpenTK
Assembly: OpenTK.dll
Syntax
public static class BlittableValueType<T>
Type Parameters
Name Description
T
Remarks

A blittable value type is a struct that only references other value types recursively, which allows it to be passed to unmanaged code directly.

Properties

Stride

Gets the size of the type in bytes or 0 for non-blittable types.

Declaration
public static int Stride { get; }
Property Value
Type Description
Int32
Remarks

This property returns 0 for non-blittable types.

Methods

Check()

Checks whether the current typename T is blittable.

Declaration
public static bool Check()
Returns
Type Description
Boolean

True if T is blittable; false otherwise.

Check(Type)

Checks whether type is a blittable value type.

Declaration
public static bool Check(Type type)
Parameters
Type Name Description
Type type

A System.Type to check.

Returns
Type Description
Boolean

True if T is blittable; false otherwise.

In This Article
Back to top Generated by DocFX