writeUint16List method
Writes every code unit of value as a big-endian 16-bit integer.
Writing UTF-16 text in one call avoids a per-code-unit method call, which dominates encoding long descriptor strings.
Implementation
void writeUint16List(List<int> value) {
_reserve(value.length * 2);
int offset = _length;
for (final int unit in value) {
_data.setUint16(offset, unit);
offset += 2;
}
_length = offset;
}