16 template <
typename Stream>
17 inline void write(Stream& stream)
const {
18 std::memcpy(stream.getData(), data.data(), data.size());
21 template <
typename Stream>
22 inline void read(Stream& stream) {
23 data.resize(stream.getLength());
24 std::memcpy(data.data(), stream.getData(), stream.getLength());
45 return m.
type.c_str();
58 template <
typename Stream>
63 template <
typename Stream>
void read(Stream &stream)
static const char * value(const foxglove_bridge::GenericService &m)
static uint32_t serializedLength(const foxglove_bridge::GenericService &m)
static void write(Stream &stream, const foxglove_bridge::GenericService &m)
std::vector< uint8_t > data
static const char * value(const foxglove_bridge::GenericService &m)
void write(Stream &stream) const
static void read(Stream &stream, foxglove_bridge::GenericService &m)
static const char * value()
static const char * value()