clearBuffer method

  1. @override
void clearBuffer(
  1. StorageBuffer buffer, {
  2. int offsetInBytes = 0,
  3. int? sizeInBytes,
})
override

Zeroes sizeInBytes bytes (to the end by default) of buffer from offsetInBytes. DeviceFeature.bufferCopy.

Implementation

@override
void clearBuffer(
  StorageBuffer buffer, {
  int offsetInBytes = 0,
  int? sizeInBytes,
}) => _gated(DeviceFeature.bufferCopy, 'clearBuffer', (
  buffer: buffer,
  offsetInBytes: offsetInBytes,
  sizeInBytes: sizeInBytes,
));