public static long toInt64(ClickHouseByteBuffer byteBuffer) {
        return toInt64(byteBuffer.array(), byteBuffer.position());
    }
Utility class for dealing with binary stream and data.
clickhouse-data/src/main/java/com/clickhouse/data/format/BinaryStreamUtils.java