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