public byte lastByte() {
        return array[position + length - 1];
    }
Creates a copy of the current byte buffer.

@param deep true to copy the underlying byte array; false to reuse
@return non-null copy of the current byte buffer
clickhouse-data/src/main/java/com/clickhouse/data/ClickHouseByteBuffer.java