Show / Hide Table of Contents

Class BlittableValueType<T>

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

Inheritance
System.Object
BlittableValueType<T>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: OpenTK
Assembly: cs.temp.dll.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
System.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
System.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
System.Type type

A System.Type to check.

Returns
Type Description
System.Boolean

True if T is blittable; false otherwise.

Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX