writeListInt8 method

int writeListInt8(
  1. List<int> values
)

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

Implementation

int writeListInt8(List<int> values) {
  _ensureNoVTable();
  _prepare(_sizeofUint32, 1, additionalBytes: values.length);
  final int result = _tail;
  int tail = _tail;
  _setUint32AtTail(_buf, tail, values.length);
  tail -= _sizeofUint32;
  for (int value in values) {
    _setInt8AtTail(_buf, tail, value);
    tail -= _sizeofUint8;
  }
  return result;
}