setAll method

int setAll(
  1. int index,
  2. List<int> bytes
)

Writes bytes starting at index; grows the buffer if needed.

Implementation

int setAll(int index, List<int> bytes) {
  _ensureLength(index + bytes.length);
  _buffer.bytes.setAll(index, bytes);
  return bytes.length;
}