Microsoft.Azure.Amqp.BufferListStream.Advance C# (CSharp) Method

Advance() private method

private Advance ( int count, int segmentCount ) : void
count int
segmentCount int
return void
        void Advance(int count, int segmentCount)
        {
            if (count > segmentCount)
            {
                throw new ArgumentOutOfRangeException("count");
            }

            this.position += count;
            this.readOffset += count;
            if (this.readOffset == segmentCount)
            {
                ++this.readArray;
                this.readOffset = 0;
            }
        }