S
Sid Price
HI,
Although I am an experienced C++ programmer I am relatively new to C#. I
have a method that has the following prototype:
public int GetDataBytes(ref byte[] dataBuf, int numBytes)
The calling code has a byte buffer defined but I need to pass a reference to
a point that is offset in that buffer.
What is the syntax for doing this?
In C I would have done:
byte buffer[32] ;
GetDataBytes(&buffer[20],5) ;
Thank you,
Sid.
Although I am an experienced C++ programmer I am relatively new to C#. I
have a method that has the following prototype:
public int GetDataBytes(ref byte[] dataBuf, int numBytes)
The calling code has a byte buffer defined but I need to pass a reference to
a point that is offset in that buffer.
What is the syntax for doing this?
In C I would have done:
byte buffer[32] ;
GetDataBytes(&buffer[20],5) ;
Thank you,
Sid.