Takes the raw bits of a value and reinterprets them as a different type.
the new type.
the value to reinterpret.
a reference to the reinterpreted value.
uint n = 0xDEADBEEF; version (LittleEndian) assert(n.bitCast!(ubyte[4]) == [0xEF, 0xBE, 0xAD, 0xDE]); version (BigEndian) assert(n.bitCast!(ubyte[4]) == [0xDE, 0xAD, 0xBE, 0xEF]);
See Implementation
Takes the raw bits of a value and reinterprets them as a different type.