The default size of the internal buffer in bytes
The buffer has to be big enough to allocate a single write, i.e we cannot write
*at once* more than bufferSize bytes
Sorts the top topElements of the given array in
descending order, using heap sort for sorting the values
in ascending order and then reversing the order of a
specified number of elements.
Sorts the top topElements of the given array in
descending order, using heap sort for sorting the values
in ascending order and then reversing the order of a
specified number of elements.