installSharedBytesAllocator function

void installSharedBytesAllocator(
  1. SharedBytes allocate(
    1. int
    )
)

Installs the generated module's private allocator once during startup.

Implementation

void installSharedBytesAllocator(SharedBytes Function(int) allocate) {
  _allocate ??= allocate;
}