J
johannblake
I need to copy all the data from a one dimensional byte array to a
specific column in a two dimensional int array. For example:
byte[] byteArray = {4, 5, 6};
int[,] intArray = new int[2, 3];
After copying to the first column in intArray, I want the intArray to
have the following data:
intArray[0, 0] has the value 4
intArray[0, 1] has the value 5
intArray[0, 2] has the value 6
I actually need to copy thousands of bytes, so what is the fastest
solution without using a loop?
Thanks,
Johann
specific column in a two dimensional int array. For example:
byte[] byteArray = {4, 5, 6};
int[,] intArray = new int[2, 3];
After copying to the first column in intArray, I want the intArray to
have the following data:
intArray[0, 0] has the value 4
intArray[0, 1] has the value 5
intArray[0, 2] has the value 6
I actually need to copy thousands of bytes, so what is the fastest
solution without using a loop?
Thanks,
Johann