public unsafe void Convert( byte* input, byte* output, int offset ) { uint* inputPtr = (uint*)input, outputPtr = (uint*)output; uint inp = inputPtr[ offset ]; outputPtr[ offset ] = ( ( inp & 0x00FFFFFF ) << 8 ) | ( ( inp & 0xFF000000 ) >> 24 ); } }