writeListInt32 method

int writeListInt32(
  1. List<int> values
)

Write the given list of signed 32-bit integer values.

Implementation

int writeListInt32(List<int> values) {
  assert(!_inVTable);
  _prepare(_sizeofUint32, 1 + values.length);
  final result = _tail;
  var tail = _tail;
  _setUint32AtTail(tail, values.length);
  tail -= _sizeofUint32;
  for (final value in values) {
    _setInt32AtTail(tail, value);
    tail -= _sizeofInt32;
  }
  return result;
}