clear method

  1. @override
void clear()
override

Erases all data and resets the internal structure, but does not reclaim storage.

Implementation

@override
void clear() {
  _recordPool.clear();
  _memoryPool.clear();
  _header.numRecords = 0;
  if (_flush) {
    flush();
  }
}