|
-
October 17th, 2008, 05:01 PM
#1
Buffer.Blockcopy to multi-dimensional array -
I am using VS 2008, C#
if i have 2 byte arrays
packet and PACKET1
I can do a blockcopy from one to the other like so:
Buffer.BlockCopy(packet, 0, PACKET1, 0, packet.Length);
How can I do a blockcopy into one dimension of a multidimensional array, like so:
int i;
public byte[,] PACKETHOLDER;
PACKETHOLDER = new byte[100, 150];
Buffer.BlockCopy(packet, 0, PACKETHOLDER[i], 0, packet.Length);
the above not work. I want to iterate i, and copy a bunch of bytearrays into a multi-dimensional array -
Thank You
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|