write method
Writes the int
at list
as bytes, respecting offset
and length
parameters.
Implementation
@override
int write(List<int> list, [int offset = 0, int? length]) {
length ??= list.length - offset;
final pos = _position;
ensureCapacity(pos + length);
_bytes.setRange(pos, pos + length, list, offset);
incrementPosition(length);
return length;
}