deserialize method

  1. @override
TopicStatistics deserialize(
  1. ByteDataReader reader
)

Implementation

@override
TopicStatistics deserialize(ByteDataReader reader) {
  //deserializes a message object of type TopicStatistics
  final data = TopicStatistics();
  // Deserialize message field [topic]
  data.topic = reader.readString();
  // Deserialize message field [node_pub]
  data.node_pub = reader.readString();
  // Deserialize message field [node_sub]
  data.node_sub = reader.readString();
  // Deserialize message field [window_start]
  data.window_start = reader.readTime();
  // Deserialize message field [window_stop]
  data.window_stop = reader.readTime();
  // Deserialize message field [delivered_msgs]
  data.delivered_msgs = reader.readInt32();
  // Deserialize message field [dropped_msgs]
  data.dropped_msgs = reader.readInt32();
  // Deserialize message field [traffic]
  data.traffic = reader.readInt32();
  // Deserialize message field [period_mean]
  data.period_mean = reader.readTime();
  // Deserialize message field [period_stddev]
  data.period_stddev = reader.readTime();
  // Deserialize message field [period_max]
  data.period_max = reader.readTime();
  // Deserialize message field [stamp_age_mean]
  data.stamp_age_mean = reader.readTime();
  // Deserialize message field [stamp_age_stddev]
  data.stamp_age_stddev = reader.readTime();
  // Deserialize message field [stamp_age_max]
  data.stamp_age_max = reader.readTime();
  return data;
}