title: C++ 32-bit word byte swapping
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/105252/how-do-i-convert-between-big-endian-and-little-endian-values-in-c">How do I convert between big-endian and little-endian values in C++?</a>  </p>
  </blockquote>
  
  
  
  <p>I was wondering how you would byte swap a 32-bit word</p>
  
  <p>I have a huge buffer of these words and each of them need to be byte swapping due to endianness.</p>