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