setByteData method
Returns a writeable native ByteData view of the buffer
at index
(inclusive) with an length of length
.
Exceptions:
-
WriteIndexOutOfRangeException if the current writer index is outside of the bounds of the buffer.
-
BufferOverflowException if the length of the resulting bytes would overflow the buffer.
Implementation
ByteData setByteData(int index, int length) {
assertWriteable(index, length);
return viewByteData(index, length);
}