internal void _addCommand(LogCommands cmdtype, byte[] cmdbytes, out long logWaitNumber)
{
lock (this) {
this._processCommand(cmdtype, cmdbytes);
nextChunkBuffer.Write((UInt32)cmdbytes.Length);
nextChunkBuffer.Write((byte)cmdtype);
nextChunkBuffer.Write(cmdbytes, 0, cmdbytes.Length);
logWaitNumber = this._logWaitSequenceNumber;
}
}