public void Send(ReferenceCountedMessage m) { if (channel != null) { channel.Send(m.bytes, m.start, m.length); } }
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(); }
public ReferenceCountedSceneGraphMessage(ReferenceCountedMessage buffer) { this.buffer = buffer; start = buffer.start + header; length = buffer.length - header; }