private void PostInternalMessage(short msgType) { var networkWriter = new QNetworkWriter(); networkWriter.StartMessage(msgType); networkWriter.FinishMessage(); PostInternalMessage(networkWriter.AsArray(), 0); }
internal void InvokeHandlerOnClient(short msgType, QMessageBase msg, int channelId) { var networkWriter = new QNetworkWriter(); networkWriter.StartMessage(msgType); msg.Serialize(networkWriter); networkWriter.FinishMessage(); InvokeBytesOnClient(networkWriter.AsArray(), channelId); }
public override bool SendWriter(QNetworkWriter writer, int channelId) { LocalClient.InvokeBytesOnClient(writer.AsArray(), channelId); return(true); }
public override bool SendWriter(QNetworkWriter writer, int channelId) => m_LocalServer.InvokeBytes(this, writer.AsArray(), (short)writer.AsArray().Length, channelId);