public void EnqueueBufferQueue(int length, int index = 0) { if (index + length > BufferSize) { throw new Exception("超过Buffer长度"); } BufferQueue.Lock(); try { for (var i = index; i < length; i++) { BufferQueue.Enqueue(Buffer[i], true); } } catch { } BufferQueue.UnLock(); BufferQueue.EnqueueEvent.Set(); }