message: serialize: Serialization support for big-endian 32-bit ints.
diff: @@ -89,6 +89,11 @@ template<typename Stream> inline void ser_writedata32(Stream &s, uint32_t obj)
  obj = htole32(obj);
  s.write((char*)&obj, 4);
  }
  +template<typename Stream> inline void ser_writedata32be(Stream &s, uint32_t obj)
  +{
  + obj = htobe32(obj);
  + s.write((char*)&obj, 4);
  +}
  template<typename Stream> inline void ser_writedata64(Stream &s, uint64_t obj)
  {
  obj = htole64(obj);
  @@ -118,6 +123,12 @@ template<typename Stream> inline uint32_t ser_readdata32(Stream &s)
  s.read((char*)&obj, 4);
  return le32toh(obj);
  }
  +template<typename Stream> inline uint32_t ser_readdata32be(Stream &s)
  +{
  + uint32_t obj;
  + s.read((char*)&obj, 4);
  + return be32toh(obj);
  +}
  template<typename Stream> inline uint64_t ser_readdata64(Stream &s)
  {
  uint64_t obj;
  