private static SwapBlocks ( int arr, int offset1, int offset2 ) : void | ||
arr | int | |
offset1 | int | |
offset2 | int | |
Résultat | void |
private static void SwapBlocks(int[] arr, int offset1, int offset2) {
for(var i = 0; i < 4; i++) {
var t = arr[offset1 + i];
arr[offset1 + i] = arr[offset2 + i];
arr[offset2 + i] = t;
}
}