Пример #1
0
 /// <summary>
 ///     Deserialize the packet.
 /// </summary>
 /// <param name="data">The serialized packet.</param>
 /// <param name="start">The starting index into the serialized data stream.</param>
 /// <param name="end">The ending index into the serialized data stream.</param>
 /// <returns>The newly deserialized packet.</returns>
 public static OscPacket FromByteArray(byte[] data, ref int start, int end)
 {
     return(data[start] == '#'
                ? (OscPacket)OscBundle.BundleFromByteArray(data, ref start, end)
                : OscMessage.MessageFromByteArray(data, ref start, end));
 }