Browse thread
How to handle endianness and binary string conversion for 32 bits integers (Int32)?
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | David MENTRE <dmentre@l...> |
| Subject: | How to handle endianness and binary string conversion for 32 bits integers (Int32)? |
Hello,
I would like to:
1. convert between big and little endian 32 bits integers;
2. convert between 32 bits integers and string binary representation
(to store integers in Buffer and string data structures);
3. detect machine endianness at runtime.
How could I do that? My main issue is the point 2.
I know some of my issues have been already discussed on this list but I
have been unable to google them.
Yours,
d.
--
pub 1024D/A3AD7A2A 2004-10-03 David MENTRE <dmentre@linux-france.org>
5996 CC46 4612 9CA4 3562 D7AC 6C67 9E96 A3AD 7A2A