static int GenerateOffsets int number int start int result new int num

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
static int[] GenerateOffsets(int number, int start)
{
int[] result = new int[number];
int index = 0;
int offset = start * 8;
do
{
result[index] = offset;
offset += 8;
index += 1;
} while (index < number);
return result;
}