コード例 #1
0
ファイル: Purl.cs プロジェクト: wara-ps/Streaming_Map_Demo
            public static bool ReceiveCommand(SerializeAdapter adapter, out PurlCommand command, out UInt32 payload_length, UInt32 retry = 50)
            {
                PurlCommand result_Command = PurlCommand.UNKNOWN;
                UInt32      result_Length  = 0;

                bool result = Purl_receiveCommand(adapter.GetNativeReference(), ref result_Command, ref result_Length, retry);

                command        = result_Command;
                payload_length = result_Length;

                return(result);
            }
コード例 #2
0
ファイル: Purl.cs プロジェクト: wara-ps/Streaming_Map_Demo
 private static extern bool Purl_receiveCommand(IntPtr adapter_reference, ref PurlCommand command, ref UInt32 payload_size, UInt32 retry);
コード例 #3
0
ファイル: Purl.cs プロジェクト: wara-ps/Streaming_Map_Demo
 private static extern void Purl_sendCommand(IntPtr adapter_reference, PurlCommand command, UInt32 payload_size, IntPtr command_payload_reference);
コード例 #4
0
ファイル: Purl.cs プロジェクト: wara-ps/Streaming_Map_Demo
 public static void SendCommand(SerializeAdapter adapter, PurlCommand command, UInt32 payload_size = 0, PurlCommandClass command_payload = null)
 {
     Purl_sendCommand(adapter.GetNativeReference(), command, payload_size, command_payload?.GetNativeReference() ?? IntPtr.Zero);
 }