public static long readLongLE(InputStream input, byte[] buff) throws IOException {
        readNBytes(input, buff, 0, 8);

        return (0xFFL & buff[0]) | ((0xFFL & buff[1]) << 8) | ((0xFFL & buff[2]) << 16)
                | ((0xFFL & buff[3]) << 24) | ((0xFFL & buff[4]) << 32)
                | ((0xFFL & buff[5]) << 40) | ((0xFFL & buff[6]) << 48)
                | ((0xFFL & buff[7]) << 56);
        }
Reads a little-endian long from input stream. Uses buff to receive data from the input stream.

@param input - source of bytes
@param buff  - buffer to store data
@return - long value
@throws IOException when IO error occurs
client-v2/src/main/java/com/clickhouse/client/api/data_formats/internal/BinaryStreamReader.java