示例#1
0
        /// <summary>
        /// Deserializes edges data.
        /// </summary>
        /// <returns></returns>
        public static EdgeData Deserialize(uint[] data)
        {
            float  distance;
            ushort profile;

            EdgeDataSerializer.Deserialize(data[0], out distance, out profile);

            return(new EdgeData()
            {
                Profile = profile,
                Distance = distance
            });
        }
示例#2
0
 /// <summary>
 /// Serializes edge data.
 /// </summary>
 /// <returns></returns>
 public static uint[] Serialize(EdgeData data)
 {
     return(EdgeDataSerializer.Serialize(data.Distance, data.Profile));
 }