initDartIsolateContext function

Pointer<Void> initDartIsolateContext(
  1. List<int> dartMethods
)

Implementation

Pointer<Void> initDartIsolateContext(List<int> dartMethods) {
  Pointer<Uint64> bytes = malloc.allocate<Uint64>(sizeOf<Uint64>() * dartMethods.length);
  Uint64List nativeMethodList = bytes.asTypedList(dartMethods.length);
  nativeMethodList.setAll(0, dartMethods);
  return _initDartIsolateContext(nativePort, bytes, dartMethods.length, enableWebFProfileTracking ? 1 : 0);
}