public static ROSDuration read_ROSDuration(BinaryReader reader) { var o = new ROSDuration(); o.secs = reader.ReadInt32(); o.nsecs = reader.ReadInt32(); return(o); }
public static ROSDuration[] read_ROSDuration_array(BinaryReader reader, int count = -1) { if (count < 0) { count = (int)reader.ReadUInt32(); } var o = new ROSDuration[count]; for (uint i = 0; i < count; i++) { o[i] = read_ROSDuration(reader); } return(o); }
public static void write_ROSDuration(BinaryWriter writer, ROSDuration val) { writer.Write(val.secs); writer.Write(val.nsecs); }