-Original Message-
From: David Godsey [mailto:[EMAIL PROTECTED]
Sent: Friday, February 17, 2006 08:42
To: Dirk Bremer
Cc: Gordon Bruce; [EMAIL PROTECTED]; gerald_clark;
mysql@lists.mysql.com; David Godsey
Subject: RE: Byte Swapping (Re Post)
Endianess is byte ordering not bit
David Godsey wrote:
This might be an unusual question because mysql always stores in little
endian for all platforms (if I'm not mistaken). However, I am receiving
data from several different platforms (custom boards with various
processors) in raw form. I will have stored as a configuration
with integer
types, I may need to do some byte swapping (because this data can come
from variouse systems that could be either big or little endian). So I
am
singling out the data I need, but now I need to add the ability to byte
swap the data.
Keep in mind that it would be best if I can do
standards so I don't have to worry about those, however with integer
types, I may need to do some byte swapping (because this data can come
from variouse systems that could be either big or little endian). So I
am
singling out the data I need, but now I need to add the ability to byte
swap
(with the correct data types and such). So floats and doubles are
IEEE
standards so I don't have to worry about those, however with integer
types, I may need to do some byte swapping (because this data can come
from variouse systems that could be either big or little endian). So
I
@lists.mysql.com; David Godsey
Subject: Re: Byte Swapping (Re Post)
gerald_clark [EMAIL PROTECTED] wrote on 02/14/2006
03:59:21 PM:
[EMAIL PROTECTED] wrote:
David Godsey [EMAIL PROTECTED] wrote on 02/14/2006 03:28:41
PM:
Well, just thought I'd try one more time because I didn't get
-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
This might be an unusual question because mysql always stores in little
endian for all platforms (if I'm not mistaken). However, I am receiving
data from several different platforms (custom boards with various
processors) in raw form. I will have stored as a configuration option
what endianess
Hi David,
This might be an unusual question because mysql always stores in little
endian for all platforms (if I'm not mistaken). However, I am receiving
data from several different platforms (custom boards with various
processors) in raw form. I will have stored as a configuration option
If I do it in C I need to do a user-defined function correct?
Anyway, I am infact storing the data raw. Unfortunately byte swapping
before is not an option because I am getting a stream of raw data and
storing it in a blob field. Then based on some configuration, I pull
parts of the data out
10 matches
Mail list logo