public static byte[] readNBytesLE(InputStream input, byte[] buffer, int offset, int len) throws IOException {
        byte[] bytes = readNBytes(input, buffer, 0, len);
        int s = 0;
        int i = len - 1;
        while (s < i) {
            byte b = bytes[s];
            bytes[s] = bytes[i];
            bytes[i] = b;
            s++;
            i--;
        }

        return bytes;
    }
Reads {@code len} bytes from input stream to buffer in little-endian order.

@param input  - source of bytes
@param buffer - target buffer
@param offset - target buffer offset
@param len    - number of bytes to read
@return - target buffer
@throws IOException
client-v2/src/main/java/com/clickhouse/client/api/data_formats/internal/BinaryStreamReader.java