> -----Original Message----- > From: Gordon Bruce [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 14, 2006 15:42 > To: [EMAIL PROTECTED]; gerald_clark > Cc: mysql@lists.mysql.com; David Godsey > Subject: RE: Byte Swapping (Re Post) > > If the order of the bytes is opposite between big-endian and > little-endian, then if you can get the bytes in a string REVERSE() > should flip the order. >
REVERSE would alter the order of the bytes. To convert between big-endian and little-endian, I believe that you need to reverse the order of the bits in either a byte or a word. Dirk Bremer - Senior Systems Engineer - ESS/AMS - NISC Lake St. Louis MO - USA Central Time Zone 636-755-2652 fax 636-755-2503 [EMAIL PROTECTED] www.nisc.coop -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]