> --
> Chromium Developers mailing list: chromi...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-dev
>
There's several limitations of this class:1. Doesn't support endianess.2. Doesn't append to the stream if the size of now known.Alpha2011年8月10日13:59 Denis Lagno <dil...@chromium.org>:
base/pickle*?
Why do we need to support endianness in this case?
Chrome has never compiled on any big endian platform and likely never
will. We've explicitly not handled endianness. If you have code that
you know will be sensitive to endianness, write a compiler assert or
something so if we ever port, people will know to write big endian
versions of your functions.
Brett
#if defined(OS_WIN)
#include <winsock2.h> // for htonl
#else
#include <arpa/inet.h>
#endif
However htonl is still 32-bit, not 64-bit.