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
sourceTFrom
Returns
- TTo
Type Parameters
TFromTTo
Exceptions
- NotSupportedException
The size of
TFromandTToare not the same.