Does anyone know if there's a .NET function to swap bytes within an Byte Array?
For example, lets say I have a byte array with the following values:
byte[] arr = new byte[4];
[3] 192
[2] 168
[1] 1
[0] 4
I want to swap them so that the array becomes:
[3] 168
[2] 192
[1] 4
[0] 1
Val of [3] was swapped with val of [2] and val of [1] with val of [0]