P
Polaris
Hi C# Experts:
I have a byte-array:
byte [] byte_array = new byte[5];
byte_array[0] = 0;
byte_array[1] = 1;
byte_array[2] = 2;
byte_array[3] = 3;
byte_array[4] = 4;
Is there a way to shift the contents of the array to left by 2 byte? The end
result should be:
byte_array[0] = 2;
byte_array[1] = 3;
byte_array[2] = 4;
byte_array[3] = 0; // whatever is ok
byte_array[4] = 0; // whatever is ok
Thanks in advance!
Polaris
I have a byte-array:
byte [] byte_array = new byte[5];
byte_array[0] = 0;
byte_array[1] = 1;
byte_array[2] = 2;
byte_array[3] = 3;
byte_array[4] = 4;
Is there a way to shift the contents of the array to left by 2 byte? The end
result should be:
byte_array[0] = 2;
byte_array[1] = 3;
byte_array[2] = 4;
byte_array[3] = 0; // whatever is ok
byte_array[4] = 0; // whatever is ok
Thanks in advance!
Polaris