G
Guest
I’m using a one dimensional array: byte[] bArray = new byte[100];
And I’m writing a function that return a subset of this array:
void GetSubArray(int offset, int size, ref byte[] subArray);
As you can see, the user asks for the bArray offset and size to put in the
given subArray.
How do I do that without copying the values? I want that the sub array will
referee to the same memory/values as the bArray (same value)???
And I’m writing a function that return a subset of this array:
void GetSubArray(int offset, int size, ref byte[] subArray);
As you can see, the user asks for the bArray offset and size to put in the
given subArray.
How do I do that without copying the values? I want that the sub array will
referee to the same memory/values as the bArray (same value)???