/// <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); }
/// <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); }