installCrc32Accelerator function

void installCrc32Accelerator(
  1. Crc32Accelerator accelerator
)

Installs accelerator in the current isolate for unsigned 32-bit seeds.

The default IsolatedHive worker inherits the installed accelerator when it starts. Pass a top-level or static function and install it before initializing IsolatedHive. Hive CE handles other seeds in Dart.

Implementation

void installCrc32Accelerator(Crc32Accelerator accelerator) {
  Crc32.nativeCompute = accelerator;
}