public ClickHouseByteBuffer slice(int offset, int length) {
        if (offset == 0 && length == this.length) {
            return this;
        }

        return ClickHouseByteBuffer.of(array, offset + position, length);
    }
Gets slice of the byte buffer.

@param offset offset zero-based relative offset, 1 means the second byte
              starting from {@link #position()}
@param length length of the slice
@return non-null slice of the byte buffer(backed by the same byte array but
        with different position and length)
clickhouse-data/src/main/java/com/clickhouse/data/ClickHouseByteBuffer.java