Ejemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="bytes"></param>
 /// <returns></returns>
 public override object ConvertToObject(byte[] bytes)
 {
     int[] vs = new int[TIME_COUNT];
     for (int i = 0; i < TIME_COUNT; i++)
     {
         vs[i] = ByteRealValueConverter.ByteValueToRealValue(bytes[i]);
     }
     return(vs);
 }
Ejemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="bytes"></param>
        /// <returns></returns>
        public override object ConvertToObject(byte[] bytes)
        {
            KeyValuePair <int, int>[] values = new KeyValuePair <int, int> [POINT_COUNT];

            for (int i = 0; i < POINT_COUNT; i++)
            {
                int index = 2 * i;
                int ot    = ByteRealValueConverter.ByteValueToRealValue(bytes[index]);
                int gt2   = bytes[index + 1];
                values[i] = new KeyValuePair <int, int>(ot, gt2);
            }
            return(values);
        }