/* Invert byte order within each 16-bits of an array.  */
TwoByteSwap(unsigned char *buf, size_t nbytes)
/* Invert byte order within each 16-bits of an array.  */
TwoByteSwap(unsigned char *buf, size_t nbytes)
{
    FT_UInt16*  b = (FT_UInt16*)buf;
    for ( ; nbytes >= 2; nbytes -= 2, b++ )
      *b = BSWAP16( *b );
  }