Exemplo n.º 1
0
 public static string ToBase64String(OSCPacket packet)
 {
     return(Convert.ToBase64String(OSCConverter.Pack(packet)));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Serializes a OSCPacket and writes it to a buffer, returning the size of the packet.
 /// </summary>
 /// <param name="packet">Packet</param>
 /// <param name="size">Serialized packet size</param>
 /// <returns>Buffer with a fixed value.</returns>
 public static byte[] Pack(OSCPacket packet, out int size)
 {
     size = 0; return(PackInternal(packet, ref size));
 }
Exemplo n.º 3
0
 public static bool IsBundle(OSCPacket packet)
 {
     return(packet.IsBundle());
 }
Exemplo n.º 4
0
 public static byte[] Pack(OSCPacket packet)
 {
     return(packet.IsBundle() ? PackBundle((OSCBundle)packet) : PackMessage((OSCMessage)packet));
 }