public static void ReadMessageTest(int count)
 {
     for (int i = 0; i < count; i++)
     {
         OscMessage message = OscMessage.Read(StaticObjects.MessageBody_Array_Ints2, StaticObjects.MessageBody_Array_Ints2.Length);
     }
 }
예제 #2
0
 /// <summary>
 /// Read the osc packet from a byte array
 /// </summary>
 /// <param name="bytes">array to read from</param>
 /// <param name="index">the offset within the array where reading should begin</param>
 /// <param name="count">the number of bytes in the packet</param>
 /// <param name="origin">the origin that is the origin of this packet</param>
 /// <param name="timeTag">the time tag asociated with the parent</param>
 /// <returns>the packet</returns>
 public static OscPacket Read(byte[] bytes, int index, int count, IPEndPoint origin, OscTimeTag?timeTag)
 {
     if (OscBundle.IsBundle(bytes, index, count) == true)
     {
         return(OscBundle.Read(bytes, index, count, origin));
     }
     else
     {
         return(OscMessage.Read(bytes, index, count, origin, timeTag));
     }
 }