code: @NotNull
  	@Contract("_, _ -> new")
  	public ByteBuf slice(int offset, int length) {
  		assert !isRecycled() : "Attempt to use recycled bytebuf";
  		if (!isRecycleNeeded()) {
  			return ByteBuf.wrap(array, offset, offset + length);
  		}
  		refs++;
  		return new ByteBufSlice(this, offset, offset + length);
  	}
docs: Creates a slice of this {@code ByteBuf} with the given offset and length.
  
  @param offset offset from which to slice this {@code ByteBuf}.
  @param length length of the slice.
  @return a {@code ByteBufSlice} of this {@code ByteBuf} with the given offset and length.