memset method Null safety

void memset(
  1. int start,
  2. int length,
  3. int value
)

Set a range of bytes in this buffer to value, at start offset from the current read position, and length number of bytes.

Implementation

void memset(int start, int length, int value) {
  buffer.fillRange(offset + start, offset + start + length, value);
}