serialize method

void serialize(
  1. ByteDataWriter writer
)

Implementation

void serialize(ByteDataWriter writer) {
  // Serializes a message object of type TopicStatistics
  // Serialize message field [topic]
  writer.writeString(topic);
  // Serialize message field [node_pub]
  writer.writeString(node_pub);
  // Serialize message field [node_sub]
  writer.writeString(node_sub);
  // Serialize message field [window_start]
  writer.writeTime(window_start);
  // Serialize message field [window_stop]
  writer.writeTime(window_stop);
  // Serialize message field [delivered_msgs]
  writer.writeInt32(delivered_msgs);
  // Serialize message field [dropped_msgs]
  writer.writeInt32(dropped_msgs);
  // Serialize message field [traffic]
  writer.writeInt32(traffic);
  // Serialize message field [period_mean]
  writer.writeTime(period_mean);
  // Serialize message field [period_stddev]
  writer.writeTime(period_stddev);
  // Serialize message field [period_max]
  writer.writeTime(period_max);
  // Serialize message field [stamp_age_mean]
  writer.writeTime(stamp_age_mean);
  // Serialize message field [stamp_age_stddev]
  writer.writeTime(stamp_age_stddev);
  // Serialize message field [stamp_age_max]
  writer.writeTime(stamp_age_max);
}