Esempio n. 1
0
 public void Send(ReferenceCountedMessage m)
 {
     if (channel != null)
     {
         channel.Send(m.bytes, m.start, m.length);
     }
 }
Esempio n. 2
0
        public void Send(ReferenceCountedMessage m)
        {
            Profiler.BeginSample("Send");

            foreach (var c in connections)
            {
                m.Acquire();
                c.Send(m);
            }
            m.Release(); // m should have been acquired once on creation.

            Profiler.EndSample();
        }
Esempio n. 3
0
 public ReferenceCountedSceneGraphMessage(ReferenceCountedMessage buffer)
 {
     this.buffer = buffer;
     start       = buffer.start + header;
     length      = buffer.length - header;
 }