byte representation of numbers
<p>I use the next way to get the byte representation of numbers in C++:</p>

<pre><code>template&lt; class T &gt;
union u_value
{
  T value;
  unsigned char bytes[  sizeof( T ) ];
}
</code></pre>

<p>Please, tell me is that the true way? And if not why and how should I get it?</p>
