zeros function

Uint8List zeros(
  1. int bytes
)

Returns a buffer filled with 0s.

Implementation

Uint8List zeros(int bytes) {
  var buffer = Uint8List(bytes);
  buffer.fillRange(0, bytes, 0);
  return buffer;
}