Amqp.ByteBuffer.Shrink C# (CSharp) Method

Shrink() public method

Moves back the write position. As a result, length is decreased by size.
public Shrink ( int size ) : void
size int
return void
        public void Shrink(int size)
        {
            Fx.Assert(size >= 0 && size <= this.Length, "size must be positive and not greater then length.");
            this.write -= size;
        }