void LCMSerializerVisitor::write(const uint32_t &/*id*/, const double &v) { double _v = htond(v); m_buffer.write(reinterpret_cast<const char*>(&_v), sizeof(const double)); }
void LCMSerializerVisitor::write(const uint32_t &/*fourByteID*/, const uint8_t &/*oneByteID*/, const string &/*longName*/, const string &/*shortName*/, const double &v) { double _v = htond(v); m_buffer.write(reinterpret_cast<const char*>(&_v), sizeof(const double)); }
// they are their own inverses, so ... vrpn_float64 ntohd (vrpn_float64 d) { return htond(d); }