Microsoft.Azure.Amqp.AsyncIO.AsyncReader.Cleanup C# (CSharp) Method

Cleanup() private method

private Cleanup ( ) : void
return void
            void Cleanup()
            {
                ArraySegment<byte> temp;
                lock (this.readAsyncEventArgs)
                {
                    temp = this.frameSizeBuffer;
                    this.frameSizeBuffer = default(ArraySegment<byte>);
                }

                if (temp.Array != null)
                {
                    FrameSizeSegmentPool.ReturnBuffer(temp);
                }
            }