internal static Task <ButtplugFFIServerMessage> SendClientMessage(ButtplugFFIMessageSorter aSorter, ButtplugFFIClientHandle aHandle, ClientMessage aMsg, ButtplugCallback aCallback, IntPtr aCallbackCtx) { var task = aSorter.PrepareClientMessage(aMsg); var buf = aMsg.ToByteArray(); ButtplugFFICalls.buttplug_client_protobuf_message(aHandle, buf, buf.Length, aCallback, aCallbackCtx); return(task); }
internal static Task <ButtplugFFIServerMessage> SendClientMessage(ButtplugFFIMessageSorter aSorter, ButtplugFFIClientHandle aHandle, ClientMessage aMsg) { var task = aSorter.PrepareClientMessage(aMsg); var buf = aMsg.ToByteArray(); ButtplugFFICalls.buttplug_parse_client_message(aHandle, buf, buf.Length); return(task); }