public static ByteSwapIntegers ( byte buffer ) : void | ||
buffer | byte | |
Résultat | void |
public static void ByteSwapIntegers(byte[] buffer)
{
uint[] ints = new uint[16];
Buffer.BlockCopy(buffer, 0, ints, 0, 32);
for (int i = 0; i < ints.Length; i++)
ints[i] = Byteswap(ints[i]);
Buffer.BlockCopy(ints, 0, buffer, 0, 32);
}