Mark

Mark

  • NA
  • 19
  • 0

Array.Copy Question

Jun 28 2007 5:12 AM
Hi All,

Sorry to ask a C++ question, but can anyone tell me what the following means and perhaps how I could implement in C#?

memcpy( dataBlock.operator->(), compressedData.operator->() + dataIndex, numOfBytesToCopy );

I am trying to use the following in C#:

byte[] compressedData;

int numOfBytesToCopy

byte[] dataBlock = new byte[numOfBytesToCopy];

Array.Copy(compressedData,dataBlock,numOfBytesToCopy);

but I'm unsure how to do the + dataIndex part as dataIndex is an int and compressedData is a byte array.

Thanks in advance for any help
Mark