private void TryDequeueAndPostSend() { byte[] data; if (sendQueue.TryDequeue(out data)) { AsyncUserToken dataToken = sendDataToken; dataToken.messageBytes = data; dataToken.messageLength = data.Length; SendBuffer(); } else { ResetSendFlag(); } }
internal bool TryDequeue(out byte[] result) { return(mSendQueue.TryDequeue(out result)); }