public virtual IByteBuffer SetIndex(int readerIdx, int writerIdx)
        {
            if (readerIdx < 0 || readerIdx > writerIdx || writerIdx > this.Capacity)
            {
                ThrowHelper.ThrowIndexOutOfRangeException_ReaderWriterIndex(readerIdx, writerIdx, this.Capacity);
            }

            this.SetIndex0(readerIdx, writerIdx);
            return(this);
        }