getIntsWithList method

void getIntsWithList(
  1. int amount,
  2. Int32List intoArray, [
  3. int startIndex = 0
])

Populates an int array with ints retrieved from the message.

amount : The amount of ints to retrieve. intoArray : The array to populate. startIndex : The position at which to start populating the array.

Implementation

void getIntsWithList(int amount, Int32List intoArray, [int startIndex = 0]) {
  if (startIndex + amount > intoArray.length) {
    throw ArgumentError(_arrayNotLongEnoughError(
        amount, intoArray.length, startIndex, intName));
  }

  _readInts(amount, intoArray, startIndex);
}