public static string ToBase64String(OSCPacket packet) { return(Convert.ToBase64String(OSCConverter.Pack(packet))); }
/// <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)); }
public static bool IsBundle(OSCPacket packet) { return(packet.IsBundle()); }
public static byte[] Pack(OSCPacket packet) { return(packet.IsBundle() ? PackBundle((OSCBundle)packet) : PackMessage((OSCMessage)packet)); }