Allocates a Buffer that can hold up to 'length' elements.
Allocates a Buffer that can hold up to 'length' elements. All elements of the buffer should be considered invalid until data is explicitly copied in.
Copy a single element from src(srcPos) to dst(dstPos).
Copy a single element from src(srcPos) to dst(dstPos).
Copy a range of elements starting at src(srcPos) to dst, starting at dstPos.
Copy a range of elements starting at src(srcPos) to dst, starting at dstPos. Overlapping ranges are allowed.
Returns the sort key for the element at the given index and reuse the input key if possible.
Returns the sort key for the element at the given index and reuse the input key if possible. The default implementation ignores the reuse parameter and invokes Int. If you want to override this method, you must implement newKey().
Return the sort key for the element at the given index.
Return the sort key for the element at the given index.
Creates a new mutable key for reuse.
Creates a new mutable key for reuse. This should be implemented if you want to override Int, K).
Swap two elements.
Swap two elements.