
28 Mar
2006
28 Mar
'06
5 p.m.
Olaf van der Spek <olafvdspek <at> gmail.com> writes:
Hi,
When reading/writing binary streams, you often need to read/write an (unaligned) integer in big, little or native endian. Is there support for this in Boost?
Sometimes it is necessary to send floats and doubles as well between different hosts. In such cases, should a float be sent as is down the wire, relying on IEEE754 for correct representation at destination, or should it be converted to a null- terminated ascii-string, or should it...? It would be really nice if boost.asio or boost.whatever automagically handled such floating-point primitives in the most efficient yet portable manner. Rune