public static void invertArray(final byte[] array) {
        final int size = array.length;
        byte temp;

        for (int i = 0; i < size / 2; i++) {
            temp = array[i];
            array[i] = array[size - 1 - i];
            array[size - 1 - i] = temp;
        }
    }
Inverts an byte array in place.

@param array the array
library/src/main/java/dev/alt236/bluetoothlelib/util/ByteUtils.java