static PooledSlicedByteBuffer NewInstance0(AbstractByteBuffer unwrapped, IByteBuffer wrapped, int adjustment, int length) { PooledSlicedByteBuffer slice = Recycler.Take(); slice.Init <PooledSlicedByteBuffer>(unwrapped, wrapped, 0, length, length); slice.DiscardMarks(); slice.adjustment = adjustment; return(slice); }
public override IByteBuffer RetainedSlice(int index, int length) => PooledSlicedByteBuffer.NewInstance(this.UnwrapCore(), this, this.Idx(index), length);