code: public static void swap(byte[] byteArray, int index1, int index2) {
          TrivialSwap.swap(byteArray, index1, byteArray, index2);
      }
docs: Swap two elements of a byte array at the specified positions
  
  @param byteArray array that will have two of its values swapped.
  @param index1 one of the indexes of the array.
  @param index2 other index of the array.