Exemplo n.º 1
0
        public static ROSTime read_ROSTime(BinaryReader reader)
        {
            var o = new ROSTime();

            o.secs  = reader.ReadUInt32();
            o.nsecs = reader.ReadUInt32();
            return(o);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public static void write_ROSTime(BinaryWriter writer, ROSTime val)
 {
     writer.Write(val.secs);
     writer.Write(val.nsecs);
 }