clear method

  1. @override
void clear(
  1. ByteData data,
  2. bool isFresh
)
override

Clear the allocated data contents.

Param isFresh is true if the given data has been freshly allocated, depending on the allocator implementation, clearing may be unnecessary.

Implementation

@override
@pragma('vm:prefer-inline')
void clear(ByteData data, bool isFresh) {
  if (isFresh) {
    // nothing to do, ByteData is created all zeroed out
  } else {
    super.clear(data, isFresh);
  }
}