Table of Contents

Method BitCast

Namespace
Zyl.VectorTraits.Impl.Util
Assembly
VectorTraits.dll

BitCast<TFrom, TTo>(TFrom)

Reinterprets the given value of type TFrom as a value of type TTo.

public static TTo BitCast<TFrom, TTo>(TFrom source) where TFrom : struct where TTo : struct

Parameters

source TFrom

Returns

TTo

Type Parameters

TFrom
TTo

Exceptions

NotSupportedException

The size of TFrom and TTo are not the same.