Files
Aaru.VideoNow/DiscImageChef.VideoNow/Swapping.cs

18 lines
397 B
C#
Raw Normal View History

2020-03-01 13:56:13 +00:00
namespace Aaru.VideoNow
2019-03-13 19:26:14 +00:00
{
public static class Swapping
{
public static byte[] SwapBuffer(byte[] buffer)
{
byte[] tmp = new byte[buffer.Length];
for(int i = 0; i < buffer.Length; i += 2)
{
tmp[i] = buffer[i + 1];
tmp[i + 1] = buffer[i];
}
return tmp;
}
}
}