is there a function to swap bytes regardless of the number of byte digits entered ?

2: 0A = A0
4: 1234 =3412
6,8,10 etc

Thank you