Microsoft.Azure.Amqp.AsyncIO.AsyncWriter.EnqueueBuffer C# (CSharp) Method

EnqueueBuffer() private method

private EnqueueBuffer ( ByteBuffer buffer ) : void
buffer ByteBuffer
return void
            void EnqueueBuffer(ByteBuffer buffer)
            {
                this.bufferQueueSize += buffer.Length;
                this.bufferQueue.Enqueue(buffer);
                if (this.bufferQueueSize >= this.writeQueueFullLimit && !this.isQueueFull)
                {
                    this.isQueueFull = true;
                    this.parent.OnIoEvent(IoEvent.WriteBufferQueueFull, this.bufferQueueSize);
                }
            }