I was looking for a way, how to set specific values for specific range in an array.
Something like this
Pseudocode:
var s = new uint[64];
s[ 0..15] := { 2, 4, 6, 3, 1, 7, 8, 9, 7, 11, 37, 32, 19, 16, 178, 2200 }
s[16..31] := ...
I was trying to find something like this in C#, but with no luck. I am trying to come with something like this:
public void SetArrayValues(int startIndex, uint[] values)
{
var length = values.Length;
this.array[startIndex, startIndex + length] = values;
}
The only thing I was able to find was System.Array.SetValue but this does not meet my requirements.