swap the endianness of the provided Uint8Array buffer array in-place, given that each element has a byte-size of bytesize