Exemplo n.º 1
0
        public void DispatchMessage(SoftFX.Lrp.LPtr handle, SoftFX.Extended.Core.FxMessage message)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);
                buffer.WriteMessage(message);

                int _status = m_client.Invoke(3, 8, buffer);
                TypesSerializer.Throw(_status, buffer);
            }
        }
Exemplo n.º 2
0
        public bool GetNextMessage(SoftFX.Lrp.LPtr handle, out SoftFX.Extended.Core.FxMessage meessage)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);

                int _status = m_client.Invoke(3, 7, buffer);
                TypesSerializer.Throw(_status, buffer);

                meessage = buffer.ReadMessage();
                var _result = buffer.ReadBoolean();
                return(_result);
            }
        }
Exemplo n.º 3
0
		public static SoftFX.Extended.Core.FxMessage ReadMessage(this MemoryBuffer buffer)
		{
			var result = new SoftFX.Extended.Core.FxMessage();
			result.Type = buffer.ReadInt32();
			result.SendingTime = buffer.ReadNullTime();
			result.ReceivingTime = buffer.ReadNullTime();
			result.Data = buffer.ReadLocalPointer();
			return result;
		}