Does almost the same, but does not require replacement, instead only its length, n bytes. This is useful for avoiding memory allocations.
Modifies array in-place so that slice is replaced by replacement[].
See Source File