bitCast

fnT bitCast(T, S)(ref S value) if (T.sizeof <= S.sizeof) ref

Takes the raw bits of a value and reinterprets them as a different type.

Parameters

Tthe new type.
valuethe value to reinterpret.

Returns

a reference to the reinterpreted value.