/// <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 }); }
/// <summary> /// Serializes edge data. /// </summary> /// <returns></returns> public static uint[] Serialize(EdgeData data) { return(EdgeDataSerializer.Serialize(data.Distance, data.Profile)); }