Skip to main content

Crate dart_sys

Crate dart_sys 

Source
Expand description

Opt-in style bindings to the Dart SDK

This crate provides bindings to the Dart SDK. It is generated using bindgen and the official Dart SDK.

Bindings are generated statically, meaning that the Dart SDK headers are included in the crate and no external dependencies are required.

Structs§

Dart_CObject_Type
A Dart_CObject is used for representing Dart objects as native C data outside the Dart heap. These objects are totally detached from the Dart heap. Only a subset of the Dart objects have a representation as a Dart_CObject.
Dart_CodeObserver
Forward declaration
Dart_CoreType_Id
Dart_EmbedderInformation
Dart_InitializeParams
Describes how to initialize the VM. Used with Dart_Initialize.
Dart_IsolateFlags
Dart_KernelCompilationResult
Dart_KernelCompilationStatus
Experimental support for Dart to Kernel parser isolate.
Dart_KernelCompilationVerbosityLevel
Dart_LibraryTag
Dart_NativeArgument_Type
Dart_PerformanceMode
Dart_SourceFile
Dart_TimelineRecorderEvent
Dart_TimelineRecorderEvent_Argument
Dart_Timeline_Event_Type
Dart_TypedData_Type
_Dart_CObject
_Dart_CObject__bindgen_ty_1__bindgen_ty_1
_Dart_CObject__bindgen_ty_1__bindgen_ty_2
_Dart_CObject__bindgen_ty_1__bindgen_ty_3
_Dart_CObject__bindgen_ty_1__bindgen_ty_4
_Dart_CObject__bindgen_ty_1__bindgen_ty_5
_Dart_CObject__bindgen_ty_1__bindgen_ty_6
_Dart_FinalizableHandle
_Dart_Handle
_Dart_Isolate
_Dart_IsolateGroup
_Dart_NativeArgument_Descriptor
_Dart_NativeArgument_Value__bindgen_ty_1
_Dart_NativeArgument_Value__bindgen_ty_2
_Dart_NativeArguments
_Dart_WeakPersistentHandle
_Lldiv_t
_Mbstatet
__crt_locale_data
__crt_locale_data_public
__crt_locale_pointers
__crt_multibyte_data
_bindgen_ty_1

Constants§

DART_API_DL_MAJOR_VERSION
DART_API_DL_MINOR_VERSION
DART_EMBEDDER_INFORMATION_CURRENT_VERSION
DART_FLAGS_CURRENT_VERSION
DART_INITIALIZE_PARAMS_CURRENT_VERSION
DART_KERNEL_ISOLATE_NAME
DART_TIMELINE_RECORDER_CURRENT_VERSION
DART_VM_SERVICE_ISOLATE_NAME
Dart_CObject_Type_Dart_CObject_kArray
Dart_CObject_Type_Dart_CObject_kBool
Dart_CObject_Type_Dart_CObject_kCapability
Dart_CObject_Type_Dart_CObject_kDouble
Dart_CObject_Type_Dart_CObject_kExternalTypedData
Dart_CObject_Type_Dart_CObject_kInt32
Dart_CObject_Type_Dart_CObject_kInt64
Dart_CObject_Type_Dart_CObject_kNativePointer
Dart_CObject_Type_Dart_CObject_kNull
Dart_CObject_Type_Dart_CObject_kNumberOfTypes
Dart_CObject_Type_Dart_CObject_kSendPort
Dart_CObject_Type_Dart_CObject_kString
Dart_CObject_Type_Dart_CObject_kTypedData
Dart_CObject_Type_Dart_CObject_kUnmodifiableExternalTypedData
Dart_CObject_Type_Dart_CObject_kUnsupported
Dart_CoreType_Id_Dart_CoreType_Dynamic
Dart_CoreType_Id_Dart_CoreType_Int
Dart_CoreType_Id_Dart_CoreType_String
Dart_KernelCompilationStatus_Dart_KernelCompilationStatus_Crash
Dart_KernelCompilationStatus_Dart_KernelCompilationStatus_Error
Dart_KernelCompilationStatus_Dart_KernelCompilationStatus_MsgFailed
Dart_KernelCompilationStatus_Dart_KernelCompilationStatus_Ok
Dart_KernelCompilationStatus_Dart_KernelCompilationStatus_Unknown
Dart_KernelCompilationVerbosityLevel_Dart_KernelCompilationVerbosityLevel_All
Dart_KernelCompilationVerbosityLevel_Dart_KernelCompilationVerbosityLevel_Error
Dart_KernelCompilationVerbosityLevel_Dart_KernelCompilationVerbosityLevel_Info
Dart_KernelCompilationVerbosityLevel_Dart_KernelCompilationVerbosityLevel_Warning
Dart_LibraryTag_Dart_kCanonicalizeUrl
Dart_LibraryTag_Dart_kImportTag
Dart_LibraryTag_Dart_kKernelTag
Dart_NativeArgument_Type_Dart_NativeArgument_kBool
Dart_NativeArgument_Type_Dart_NativeArgument_kDouble
Dart_NativeArgument_Type_Dart_NativeArgument_kInstance
Dart_NativeArgument_Type_Dart_NativeArgument_kInt32
Dart_NativeArgument_Type_Dart_NativeArgument_kInt64
Dart_NativeArgument_Type_Dart_NativeArgument_kNativeFields
Dart_NativeArgument_Type_Dart_NativeArgument_kString
Dart_NativeArgument_Type_Dart_NativeArgument_kUint32
Dart_NativeArgument_Type_Dart_NativeArgument_kUint64
Dart_PerformanceMode_Dart_PerformanceMode_Default
Balanced
Dart_PerformanceMode_Dart_PerformanceMode_Latency
Optimize for low latency, at the expense of throughput and memory overhead by performing work in smaller batches (requiring more overhead) or by delaying work (requiring more memory). An embedder should not remain in this mode indefinitely.
Dart_PerformanceMode_Dart_PerformanceMode_Memory
Optimize for low memory, at the expensive of throughput and latency by more frequently performing work.
Dart_PerformanceMode_Dart_PerformanceMode_Throughput
Optimize for high throughput, at the expense of latency and memory overhead by performing work in larger batches with more intervening growth.
Dart_Timeline_Event_Type_Dart_Timeline_Event_Async_Begin
Dart_Timeline_Event_Type_Dart_Timeline_Event_Async_End
Dart_Timeline_Event_Type_Dart_Timeline_Event_Async_Instant
Dart_Timeline_Event_Type_Dart_Timeline_Event_Begin
Dart_Timeline_Event_Type_Dart_Timeline_Event_Counter
Dart_Timeline_Event_Type_Dart_Timeline_Event_Duration
Dart_Timeline_Event_Type_Dart_Timeline_Event_End
Dart_Timeline_Event_Type_Dart_Timeline_Event_Flow_Begin
Dart_Timeline_Event_Type_Dart_Timeline_Event_Flow_End
Dart_Timeline_Event_Type_Dart_Timeline_Event_Flow_Step
Dart_Timeline_Event_Type_Dart_Timeline_Event_Instant
Dart_TypedData_Type_Dart_TypedData_kByteData
Dart_TypedData_Type_Dart_TypedData_kFloat32
Dart_TypedData_Type_Dart_TypedData_kFloat64
Dart_TypedData_Type_Dart_TypedData_kFloat32x4
Dart_TypedData_Type_Dart_TypedData_kFloat64x2
Dart_TypedData_Type_Dart_TypedData_kInt8
Dart_TypedData_Type_Dart_TypedData_kInt16
Dart_TypedData_Type_Dart_TypedData_kInt32
Dart_TypedData_Type_Dart_TypedData_kInt64
Dart_TypedData_Type_Dart_TypedData_kInt32x4
Dart_TypedData_Type_Dart_TypedData_kInvalid
Dart_TypedData_Type_Dart_TypedData_kUint8
Dart_TypedData_Type_Dart_TypedData_kUint8Clamped
Dart_TypedData_Type_Dart_TypedData_kUint16
Dart_TypedData_Type_Dart_TypedData_kUint32
Dart_TypedData_Type_Dart_TypedData_kUint64
ILLEGAL_ISOLATE_GROUP_ID
PRIX8
PRIX16
PRIX32
PRIX64
PRIXFAST8
PRIXFAST16
PRIXFAST32
PRIXFAST64
PRIXLEAST8
PRIXLEAST16
PRIXLEAST32
PRIXLEAST64
PRIXMAX
PRIXPTR
PRId8
PRId16
PRId32
PRId64
PRIdFAST8
PRIdFAST16
PRIdFAST32
PRIdFAST64
PRIdLEAST8
PRIdLEAST16
PRIdLEAST32
PRIdLEAST64
PRIdMAX
PRIdPTR
PRIi8
PRIi16
PRIi32
PRIi64
PRIiFAST8
PRIiFAST16
PRIiFAST32
PRIiFAST64
PRIiLEAST8
PRIiLEAST16
PRIiLEAST32
PRIiLEAST64
PRIiMAX
PRIiPTR
PRIo8
PRIo16
PRIo32
PRIo64
PRIoFAST8
PRIoFAST16
PRIoFAST32
PRIoFAST64
PRIoLEAST8
PRIoLEAST16
PRIoLEAST32
PRIoLEAST64
PRIoMAX
PRIoPTR
PRIu8
PRIu16
PRIu32
PRIu64
PRIuFAST8
PRIuFAST16
PRIuFAST32
PRIuFAST64
PRIuLEAST8
PRIuLEAST16
PRIuLEAST32
PRIuLEAST64
PRIuMAX
PRIuPTR
PRIx8
PRIx16
PRIx32
PRIx64
PRIxFAST8
PRIxFAST16
PRIxFAST32
PRIxFAST64
PRIxLEAST8
PRIxLEAST16
PRIxLEAST32
PRIxLEAST64
PRIxMAX
PRIxPTR
SCNd8
SCNd16
SCNd32
SCNd64
SCNdFAST8
SCNdFAST16
SCNdFAST32
SCNdFAST64
SCNdLEAST8
SCNdLEAST16
SCNdLEAST32
SCNdLEAST64
SCNdMAX
SCNdPTR
SCNi8
SCNi16
SCNi32
SCNi64
SCNiFAST8
SCNiFAST16
SCNiFAST32
SCNiFAST64
SCNiLEAST8
SCNiLEAST16
SCNiLEAST32
SCNiLEAST64
SCNiMAX
SCNiPTR
SCNo8
SCNo16
SCNo32
SCNo64
SCNoFAST8
SCNoFAST16
SCNoFAST32
SCNoFAST64
SCNoLEAST8
SCNoLEAST16
SCNoLEAST32
SCNoLEAST64
SCNoMAX
SCNoPTR
SCNu8
SCNu16
SCNu32
SCNu64
SCNuFAST8
SCNuFAST16
SCNuFAST32
SCNuFAST64
SCNuLEAST8
SCNuLEAST16
SCNuLEAST32
SCNuLEAST64
SCNuMAX
SCNuPTR
SCNx8
SCNx16
SCNx32
SCNx64
SCNxFAST8
SCNxFAST16
SCNxFAST32
SCNxFAST64
SCNxLEAST8
SCNxLEAST16
SCNxLEAST32
SCNxLEAST64
SCNxMAX
SCNxPTR
WCHAR_MAX
WCHAR_MIN
WINT_MAX
WINT_MIN
_ARGMAX
_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE
_CRT_BUILD_DESKTOP_APP
_CRT_FUNCTIONS_REQUIRED
_CRT_HAS_C11
_CRT_HAS_CXX17
_CRT_INTERNAL_NONSTDC_NAMES
_CRT_INT_MAX
_CRT_PACKING
_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES
_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY
_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES
_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT
_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY
_HAS_CXX17
_HAS_CXX20
_HAS_CXX23
_HAS_EXCEPTIONS
_HAS_NODISCARD
_SAL_VERSION
_SECURECRT_FILL_BUFFER_PATTERN
_STL_LANG
_USE_ATTRIBUTES_FOR_SAL
_USE_DECLSPECS_FOR_SAL
_VCRT_COMPILER_PREPROCESSOR
__GOT_SECURE_LIB__
__SAL_H_VERSION
__STDC_SECURE_LIB__
__STDC_WANT_SECURE_LIB__
__bool_true_false_are_defined
false_
kIsolateSnapshotBssAsmSymbol
kIsolateSnapshotBssCSymbol
kIsolateSnapshotDataAsmSymbol
kIsolateSnapshotDataCSymbol
kIsolateSnapshotInstructionsAsmSymbol
kIsolateSnapshotInstructionsCSymbol
kNativeArgNumberPos
kNativeArgNumberSize
kNativeArgTypePos
kNativeArgTypeSize
kSnapshotBuildIdAsmSymbol
kSnapshotBuildIdCSymbol
kVmSnapshotBssAsmSymbol
kVmSnapshotBssCSymbol
kVmSnapshotDataAsmSymbol
kVmSnapshotDataCSymbol
kVmSnapshotInstructionsAsmSymbol
kVmSnapshotInstructionsCSymbol
true_

Statics§

Dart_CloseNativePort_DL⚠
Dart_CurrentIsolate_DL⚠
Dart_DeleteFinalizableHandle_DL⚠
Dart_DeletePersistentHandle_DL⚠
Dart_DeleteWeakPersistentHandle_DL⚠
Dart_EnterIsolate_DL⚠
Dart_EnterScope_DL⚠
Dart_ErrorGetException_DL⚠
Dart_ErrorGetStackTrace_DL⚠
Dart_ErrorHasException_DL⚠
Dart_ExitIsolate_DL⚠
Dart_ExitScope_DL⚠
Dart_GetError_DL⚠
Dart_HandleFromPersistent_DL⚠
Dart_HandleFromWeakPersistent_DL⚠
Dart_IsApiError_DL⚠
Dart_IsCompilationError_DL⚠
Dart_IsError_DL⚠
Dart_IsFatalError_DL⚠
Dart_IsNull_DL⚠
Dart_IsUnhandledExceptionError_DL⚠
Dart_NewApiError_DL⚠
Dart_NewCompilationError_DL⚠
Dart_NewFinalizableHandle_DL⚠
Dart_NewNativePort_DL⚠
Dart_NewPersistentHandle_DL⚠
Dart_NewSendPort_DL⚠
Dart_NewUnhandledExceptionError_DL⚠
Dart_NewWeakPersistentHandle_DL⚠
Dart_PostCObject_DL⚠
Dart_PostInteger_DL⚠
Dart_Post_DL⚠
Dart_PropagateError_DL⚠
Dart_SendPortGetId_DL⚠
Dart_SetPersistentHandle_DL⚠
Dart_UpdateExternalSize_DL⚠
Dart_UpdateFinalizableExternalSize_DL⚠
__security_cookie⚠

Functions§

Dart_AddSymbols⚠
Register symbol information for the Dart VM’s profiler and crash dumps.
Dart_Allocate⚠
Allocate a new object without invoking a constructor.
Dart_AllocateWithNativeFields⚠
Allocate a new object without invoking a constructor, and sets specified native fields.
Dart_BooleanValue⚠
Gets the value of a Boolean
Dart_ClassLibrary⚠
Returns a handle to the library which contains class.
Dart_ClassName⚠
Returns the name for the provided class type.
Dart_Cleanup⚠
Cleanup state in the VM before process termination.
Dart_CloseNativePort⚠
Closes the native port with the given id.
Dart_ClosureFunction⚠
Retrieves the function of a closure.
Dart_CompileAll⚠
Forces all loaded classes and functions to be compiled eagerly in the current isolate..
Dart_CompileToKernel⚠
Compiles the given script_uri to a kernel file.
Dart_CreateAppAOTSnapshotAsAssemblies⚠
Dart_CreateAppAOTSnapshotAsAssembly⚠
Creates a precompiled snapshot.
Dart_CreateAppAOTSnapshotAsElf⚠
Creates a precompiled snapshot.
Dart_CreateAppAOTSnapshotAsElfs⚠
Dart_CreateAppJITSnapshotAsBlobs⚠
Creates a snapshot that caches compiled code and type feedback for faster startup and quicker warmup in a subsequent process.
Dart_CreateCoreJITSnapshotAsBlobs⚠
Like Dart_CreateAppJITSnapshotAsBlobs, but also creates a new VM snapshot.
Dart_CreateIsolateGroup⚠
Creates a new isolate. The new isolate becomes the current isolate.
Dart_CreateIsolateGroupFromKernel⚠
Creates a new isolate from a Dart Kernel file. The new isolate becomes the current isolate.
Dart_CreateIsolateInGroup⚠
Creates a new isolate inside the isolate group of [group_member].
Dart_CreateSnapshot⚠
Creates a full snapshot of the current isolate heap.
Dart_CreateVMAOTSnapshotAsAssembly⚠
Like Dart_CreateAppAOTSnapshotAsAssembly, but only includes kDartVmSnapshotData and kDartVmSnapshotInstructions. It also does not strip DWARF information from the generated assembly or allow for separate debug information.
Dart_CurrentIsolate⚠
Returns the current isolate. Will return NULL if there is no current isolate.
Dart_CurrentIsolateData⚠
Returns the callback data associated with the current isolate. This data was set when the isolate got created or initialized.
Dart_CurrentIsolateGroup⚠
Returns the current isolate group. Will return NULL if there is no current isolate group.
Dart_CurrentIsolateGroupData⚠
Returns the callback data associated with the current isolate group. This data was passed to the isolate group when it was created.
Dart_CurrentIsolateGroupId⚠
Dart_DebugName⚠
Returns the debugging name for the current isolate.
Dart_DebugNameToCString⚠
Returns the debugging name for the current isolate.
Dart_DefaultCanonicalizeUrl⚠
Canonicalizes a url with respect to some library.
Dart_DeferredLoadComplete⚠
Notifies the VM that a deferred load completed successfully. This function will eventually cause the corresponding prefix.loadLibrary() futures to complete.
Dart_DeferredLoadCompleteError⚠
Notifies the VM that a deferred load failed. This function will eventually cause the corresponding prefix.loadLibrary() futures to complete with an error.
Dart_DeleteFinalizableHandle⚠
Deletes the given finalizable [object] handle.
Dart_DeletePersistentHandle⚠
Deallocates a persistent handle.
Dart_DeleteWeakPersistentHandle⚠
Deletes the given weak persistent [object] handle.
Dart_DetectNullSafety⚠
Detect the null safety opt-in status.
Dart_DisableHeapSampling⚠
Dart_DoubleValue⚠
Gets the value of a Double
Dart_DumpNativeStackTrace⚠
Print a native stack trace. Used for crash handling.
Dart_EmptyString⚠
Returns the empty string object.
Dart_EnableHeapSampling⚠
Starts the heap sampling profiler for each thread in the VM.
Dart_EnterIsolate⚠
Enters an isolate. After calling this function, the current isolate will be set to the provided isolate.
Dart_EnterScope⚠
Enters a new scope.
Dart_ErrorGetException⚠
Gets the exception Object from an unhandled exception error handle.
Dart_ErrorGetStackTrace⚠
Gets the stack trace Object from an unhandled exception error handle.
Dart_ErrorHasException⚠
Is this an error handle for an unhandled exception?
Dart_ExecuteInternalCommand⚠
Dart_ExitIsolate⚠
Exits an isolate. After this call, Dart_CurrentIsolate will return NULL.
Dart_ExitScope⚠
Exits a scope.
Dart_False⚠
Returns the False object.
Dart_FinalizeAllClasses⚠
Finalizes all classes.
Dart_FinalizeLoading⚠
Indicates that all outstanding load requests have been satisfied. This finalizes all the new classes loaded and optionally completes deferred library futures.
Dart_FunctionIsStatic⚠
Determines whether a function handle refers to a static function of method.
Dart_FunctionName⚠
Returns the name for the provided function or method.
Dart_FunctionOwner⚠
Returns a handle to the owner of a function.
Dart_GetClass⚠
Lookup a class or interface by name from a Library.
Dart_GetCurrentUserTag⚠
Dart_GetDataFromByteBuffer⚠
Returns the TypedData object associated with the ByteBuffer object.
Dart_GetDefaultUserTag⚠
Dart_GetError⚠
Gets the error message from an error handle.
Dart_GetField⚠
Gets the value of a field.
Dart_GetLoadedLibraries⚠
\return An array of libraries.
Dart_GetMainPortId⚠
Gets the main port id for the current isolate.
Dart_GetMessageNotifyCallback⚠
Query the current message notify callback for the isolate.
Dart_GetNativeArgument⚠
Gets the native argument at some index.
Dart_GetNativeArgumentCount⚠
Gets the number of native arguments.
Dart_GetNativeArguments⚠
Gets the native arguments based on the types passed in and populates the passed arguments buffer with appropriate native values.
Dart_GetNativeBooleanArgument⚠
Gets a boolean native argument at some index. \param args Native arguments structure. \param index Index of the desired argument in the structure above. \param value Returns the boolean value if the argument is a Boolean. \return Success if no error occurs. Otherwise returns an error handle.
Dart_GetNativeDoubleArgument⚠
Gets a double native argument at some index. \param args Native arguments structure. \param index Index of the desired argument in the structure above. \param value Returns the double value if the argument is a double. \return Success if no error occurs. Otherwise returns an error handle.
Dart_GetNativeFieldsOfArgument⚠
Gets all the native fields of the native argument at some index. \param args Native arguments structure. \param arg_index Index of the desired argument in the structure above. \param num_fields size of the intptr_t array ‘field_values’ passed in. \param field_values intptr_t array in which native field values are returned. \return Success if the native fields where copied in successfully. Otherwise returns an error handle. On success the native field values are copied into the ‘field_values’ array, if the argument at ‘arg_index’ is a null object then 0 is copied as the native field values into the ‘field_values’ array.
Dart_GetNativeInstanceField⚠
Gets the value of a native field.
Dart_GetNativeInstanceFieldCount⚠
Gets the number of native instance fields in an object.
Dart_GetNativeIntegerArgument⚠
Gets an integer native argument at some index. \param args Native arguments structure. \param index Index of the desired argument in the structure above. \param value Returns the integer value if the argument is an Integer. \return Success if no error occurs. Otherwise returns an error handle.
Dart_GetNativeIsolateGroupData⚠
Extracts current isolate group data from the native arguments structure.
Dart_GetNativeReceiver⚠
Gets the native field of the receiver.
Dart_GetNativeResolver⚠
Returns the callback used to resolve native functions for a library.
Dart_GetNativeStringArgument⚠
Gets a string native argument at some index. \param args Native arguments structure. \param arg_index Index of the desired argument in the structure above. \param peer Returns the peer pointer if the string argument has one. \return Success if the string argument has a peer, if it does not have a peer then the String object is returned. Otherwise returns an error handle (argument is not a String object).
Dart_GetNativeSymbol⚠
Returns the callback used to resolve native function symbols for a library.
Dart_GetNonNullableType⚠
Lookup or instantiate a non-nullable type by name and type arguments from Library.
Dart_GetNullableType⚠
Lookup or instantiate a nullable type by name and type arguments from Library.
Dart_GetObfuscationMap⚠
Get obfuscation map for precompiled code.
Dart_GetPeer⚠
Returns the value of peer field of ‘object’ in ‘peer’.
Dart_GetStaticMethodClosure⚠
Returns a closure of static function ‘function_name’ in the class ‘class_name’ in the exported namespace of specified ‘library’.
Dart_GetStickyError⚠
Gets the sticky error for the current isolate.
Dart_GetType⚠
Lookup or instantiate a legacy type by name and type arguments from a Library.
Dart_GetTypeOfExternalTypedData⚠
Return type if this object is an external TypedData object.
Dart_GetTypeOfTypedData⚠
Return type if this object is a TypedData object.
Dart_GetUserTagLabel⚠
Dart_HandleFromPersistent⚠
Allocates a handle in the current scope from a persistent handle.
Dart_HandleFromWeakPersistent⚠
Allocates a handle in the current scope from a weak persistent handle.
Dart_HandleMessage⚠
Handles the next pending message for the current isolate.
Dart_HandleServiceMessages⚠
Handles any pending messages for the vm service for the current isolate.
Dart_HasLivePorts⚠
Does the current isolate have live ReceivePorts?
Dart_HasServiceMessages⚠
Does the current isolate have pending service messages?
Dart_HasStickyError⚠
Does the current isolate have a sticky error?
Dart_IdentityEquals⚠
Checks to see if two handles refer to identically equal objects.
Dart_Initialize⚠
Initializes the VM.
Dart_InitializeApiDL⚠
\mainpage Dynamically Linked Dart API
Dart_InstanceGetType⚠
Gets the type of a Dart language object.
Dart_IntegerFitsIntoInt64⚠
Does this Integer fit into a 64-bit signed integer?
Dart_IntegerFitsIntoUint64⚠
Does this Integer fit into a 64-bit unsigned integer?
Dart_IntegerToHexCString⚠
Gets the value of an integer as a hexadecimal C string.
Dart_IntegerToInt64⚠
Gets the value of an Integer.
Dart_IntegerToUint64⚠
Gets the value of an Integer.
Dart_Invoke⚠
Invokes a method or function.
Dart_InvokeClosure⚠
Invokes a Closure with the given arguments.
Dart_InvokeConstructor⚠
Invokes a Generative Constructor on an object that was previously allocated using Dart_Allocate/Dart_AllocateWithNativeFields.
Dart_InvokeVMServiceMethod⚠
Invoke a vm-service method and wait for its result.
Dart_IsApiError⚠
Is this an api error handle?
Dart_IsBoolean⚠
Dart_IsByteBuffer⚠
Dart_IsClosure⚠
Dart_IsCompilationError⚠
Is this a compilation error handle?
Dart_IsDouble⚠
Dart_IsError⚠
Is this an error handle?
Dart_IsExternalString⚠
Dart_IsFatalError⚠
Is this a fatal error handle?
Dart_IsFunction⚠
Dart_IsFuture⚠
Dart_IsInstance⚠
Query object type.
Dart_IsInteger⚠
Dart_IsKernel⚠
Returns whether the buffer contains a kernel file.
Dart_IsKernelIsolate⚠
Dart_IsLegacyType⚠
Dart_IsLibrary⚠
Dart_IsList⚠
Dart_IsMap⚠
Dart_IsNonNullableType⚠
Dart_IsNull⚠
Is this object null?
Dart_IsNullableType⚠
A type’s nullability.
Dart_IsNumber⚠
Dart_IsPausedOnExit⚠
Is the current isolate paused on exit?
Dart_IsPausedOnStart⚠
Is the current isolate paused on start?
Dart_IsPrecompiledRuntime⚠
Returns whether the VM only supports running from precompiled snapshots and not from any other kind of snapshot or from source (that is, the VM was compiled with DART_PRECOMPILED_RUNTIME).
Dart_IsReloading⚠
Returns true if isolate is currently reloading.
Dart_IsServiceIsolate⚠
Returns true if isolate is the service isolate.
Dart_IsString⚠
Dart_IsStringLatin1⚠
Dart_IsTearOff⚠
Is this object a closure resulting from a tear-off (closurized method)?
Dart_IsType⚠
Dart_IsTypeVariable⚠
Dart_IsTypedData⚠
Dart_IsUnhandledExceptionError⚠
Is this an unhandled exception error handle?
Dart_IsVMFlagSet⚠
Returns true if the named VM flag is of boolean type, specified, and set to true.
Dart_IsVariable⚠
Dart_IsolateData⚠
Returns the callback data associated with the given isolate. This data was set when the isolate got created or initialized.
Dart_IsolateFlagsInitialize⚠
Initialize Dart_IsolateFlags with correct version and default values.
Dart_IsolateGroupData⚠
Returns the callback data associated with the specified isolate group. This data was passed to the isolate when it was created. The embedder is responsible for ensuring the consistency of this data with respect to the lifecycle of an isolate group.
Dart_IsolateGroupHeapNewCapacityMetric⚠
Dart_IsolateGroupHeapNewExternalMetric⚠
Dart_IsolateGroupHeapNewUsedMetric⚠
Dart_IsolateGroupHeapOldCapacityMetric⚠
Dart_IsolateGroupHeapOldExternalMetric⚠
Dart_IsolateGroupHeapOldUsedMetric⚠
Return metrics gathered for the VM and individual isolates.
Dart_IsolateMakeRunnable⚠
Make isolate runnable.
Dart_IsolateServiceId⚠
Returns the ID for an isolate which is used to query the service protocol.
Dart_KernelIsolateIsRunning⚠
Dart_KernelListDependencies⚠
Dart_KernelPort⚠
Dart_KillIsolate⚠
Kills the given isolate.
Dart_LibraryHandleError⚠
Report an loading error for the library.
Dart_LibraryResolvedUrl⚠
Returns a URL from which a Library was loaded.
Dart_LibraryUrl⚠
Returns an import path to a Library, such as “file:///test.dart” or “dart:core”.
Dart_ListGetAsBytes⚠
May generate an unhandled exception error.
Dart_ListGetAt⚠
Gets the Object at some index of a List.
Dart_ListGetRange⚠
Gets a range of Objects from a List.
Dart_ListLength⚠
Gets the length of a List.
Dart_ListSetAsBytes⚠
May generate an unhandled exception error.
Dart_ListSetAt⚠
Sets the Object at some index of a List.
Dart_LoadLibrary⚠
Dart_LoadLibraryFromKernel⚠
Called by the embedder to load a partial program. Does not set the root library.
Dart_LoadScriptFromKernel⚠
Loads the root library for the current isolate.
Dart_LoadingUnitLibraryUris⚠
Dart_LookupLibrary⚠
Dart_MapContainsKey⚠
Returns whether the Map contains a given key.
Dart_MapGetAt⚠
Gets the Object at some key of a Map.
Dart_MapKeys⚠
Gets the list of keys of a Map.
Dart_New⚠
Invokes a constructor, creating a new object.
Dart_NewApiError⚠
Produces an api error handle with the provided error message.
Dart_NewBoolean⚠
Returns a Boolean with the provided value.
Dart_NewByteBuffer⚠
Returns a ByteBuffer object for the typed data.
Dart_NewCompilationError⚠
Dart_NewDouble⚠
Returns a Double with the provided value.
Dart_NewExternalLatin1String⚠
Returns a String which references an external array of Latin-1 (ISO-8859-1) encoded characters.
Dart_NewExternalTypedData⚠
Returns a TypedData object which references an external data array.
Dart_NewExternalTypedDataWithFinalizer⚠
Returns a TypedData object which references an external data array.
Dart_NewExternalUTF16String⚠
Returns a String which references an external array of UTF-16 encoded characters.
Dart_NewFinalizableHandle⚠
Allocates a finalizable handle for an object.
Dart_NewInteger⚠
Returns an Integer with the provided value.
Dart_NewIntegerFromHexCString⚠
Returns an Integer with the provided value.
Dart_NewIntegerFromUint64⚠
Returns an Integer with the provided value.
Dart_NewList⚠
Returns a List of the desired length.
Dart_NewListOf⚠
Returns a List of the desired length with the desired legacy element type.
Dart_NewListOfType⚠
Returns a List of the desired length with the desired element type.
Dart_NewListOfTypeFilled⚠
Returns a List of the desired length with the desired element type, filled with the provided object.
Dart_NewNativePort⚠
Creates a new native port. When messages are received on this native port, then they will be dispatched to the provided native message handler.
Dart_NewPersistentHandle⚠
Allocates a persistent handle for an object.
Dart_NewSendPort⚠
Returns a new SendPort with the provided port id.
Dart_NewStringFromCString⚠
Returns a String built from the provided C string (There is an implicit assumption that the C string passed in contains UTF-8 encoded characters and ‘\0’ is considered as a termination character).
Dart_NewStringFromUTF8⚠
Returns a String built from an array of UTF-8 encoded characters.
Dart_NewStringFromUTF16⚠
Returns a String built from an array of UTF-16 encoded characters.
Dart_NewStringFromUTF32⚠
Returns a String built from an array of UTF-32 encoded characters.
Dart_NewTypedData⚠
Returns a TypedData object of the desired length and type.
Dart_NewUnhandledExceptionError⚠
Produces a new unhandled exception error handle.
Dart_NewUnmodifiableExternalTypedDataWithFinalizer⚠
Dart_NewUserTag⚠
Dart_NewWeakPersistentHandle⚠
Allocates a weak persistent handle for an object.
Dart_NotifyDestroyed⚠
Notifies the VM that the embedder expects the application’s working set has recently shrunk significantly and is not expected to rise in the near future. The VM may spend O(heap-size) time performing clean up work.
Dart_NotifyIdle⚠
Notifies the VM that the embedder expects to be idle until |deadline|. The VM may use this time to perform garbage collection or other tasks to avoid delays during execution of Dart code in the future.
Dart_NotifyLowMemory⚠
Notifies the VM that the system is running low on memory.
Dart_Null⚠
Returns the null object.
Dart_ObjectEquals⚠
Checks if the two objects are equal.
Dart_ObjectIsType⚠
Is this object an instance of some type?
Dart_Post⚠
Posts a message for some isolate. The message is a serialized object.
Dart_PostCObject⚠
Posts a message on some port. The message will contain the Dart_CObject object graph rooted in ‘message’.
Dart_PostInteger⚠
Posts a message on some port. The message will contain the integer ‘message’.
Dart_Precompile⚠
Compiles all functions reachable from entry points and marks the isolate to disallow future compilation.
Dart_PrepareToAbort⚠
Indicate that the process is about to abort, and the Dart VM should not attempt to cleanup resources.
Dart_PropagateError⚠
Propagates an error.
Dart_ReThrowException⚠
Rethrows an exception.
Dart_RecordTimelineEvent⚠
Add a timeline event to the embedder stream.
Dart_RegisterHeapSamplingCallback⚠
Dart_RegisterIsolateServiceRequestCallback⚠
Register a Dart_ServiceRequestCallback to be called to handle requests for the named rpc on a specific isolate. The callback will be invoked with the current isolate set to the request target.
Dart_RegisterRootServiceRequestCallback⚠
Register a Dart_ServiceRequestCallback to be called to handle requests for the named rpc. The callback will be invoked without a current isolate.
Dart_ReportSurvivingAllocations⚠
Dart_RootLibrary⚠
Gets the library for the root script for the current isolate.
Dart_RunLoop⚠
Processes any incoming messages for the current isolate.
Dart_RunLoopAsync⚠
Lets the VM run message processing for the isolate.
Dart_ScopeAllocate⚠
The Dart VM uses “zone allocation” for temporary structures. Zones support very fast allocation of small chunks of memory. The chunks cannot be deallocated individually, but instead zones support deallocating all chunks in one fast operation.
Dart_SendPortGetId⚠
Gets the SendPort id for the provided SendPort. \param port A SendPort object whose id is desired. \param port_id Returns the id of the SendPort. \return Success if no error occurs. Otherwise returns an error handle.
Dart_ServiceSendDataEvent⚠
Sends a data event to clients of the VM Service.
Dart_SetBooleanReturnValue⚠
Dart_SetCurrentUserTag⚠
Dart_SetDartLibrarySourcesKernel⚠
Sets the kernel buffer which will be used to load Dart SDK sources dynamically at runtime.
Dart_SetDeferredLoadHandler⚠
Sets the deferred load handler for the current isolate. This handler is used to handle loading deferred imports in an AppJIT or AppAOT program.
Dart_SetDoubleReturnValue⚠
Dart_SetDwarfStackTraceFootnoteCallback⚠
Configure DWARF stack trace footnote callback.
Dart_SetEmbedderInformationCallback⚠
Register a Dart_ServiceRequestCallback to be called to handle requests for the named rpc. The callback will be invoked without a current isolate.
Dart_SetEnabledTimelineCategory⚠
Enable tracking of specified timeline category. This is operational only when systrace timeline functionality is turned on.
Dart_SetEnvironmentCallback⚠
Sets the environment callback for the current isolate. This callback is used to lookup environment values by name in the current environment. This enables the embedder to supply values for the const constructors bool.fromEnvironment, int.fromEnvironment and String.fromEnvironment.
Dart_SetFfiNativeResolver⚠
Sets the callback used to resolve FFI native functions for a library. The resolved functions are expected to be a C function pointer of the correct signature (as specified in the @FfiNative<NFT>() function annotation in Dart code).
Dart_SetField⚠
Sets the value of a field.
Dart_SetFileModifiedCallback⚠
Dart_SetHeapSamplingPeriod⚠
Dart_SetIntegerReturnValue⚠
Dart_SetLibraryTagHandler⚠
Sets library tag handler for the current isolate. This handler is used to handle the various tags encountered while loading libraries or scripts in the isolate.
Dart_SetMessageNotifyCallback⚠
Allows embedders to provide a custom wakeup mechanism for the delivery of inter-isolate messages. This setting only applies to the current isolate.
Dart_SetNativeInstanceField⚠
Sets the value of a native field.
Dart_SetNativeResolver⚠
Sets the callback used to resolve native functions for a library.
Dart_SetPausedOnExit⚠
Called when the embedder has paused the current isolate on exit and when the embedder has resumed the isolate.
Dart_SetPausedOnStart⚠
Called when the embedder has paused the current isolate on start and when the embedder has resumed the isolate.
Dart_SetPeer⚠
Sets the value of the peer field of ‘object’ to the value of ‘peer’.
Dart_SetPerformanceMode⚠
Set the desired performance trade-off.
Dart_SetPersistentHandle⚠
Assign value of local handle to a persistent handle.
Dart_SetReturnValue⚠
Sets the return value for a native function.
Dart_SetRootLibrary⚠
Sets the root library for the current isolate.
Dart_SetServiceStreamCallbacks⚠
Adds VM service stream callbacks.
Dart_SetShouldPauseOnExit⚠
Override the VM flag --pause-isolates-on-exit for the current isolate.
Dart_SetShouldPauseOnStart⚠
Override the VM flag --pause-isolates-on-start for the current isolate.
Dart_SetStickyError⚠
Called when the embedder has caught a top level unhandled exception error in the current isolate.
Dart_SetThreadName⚠
Associates a name with the current thread. This name will be used to name threads in the timeline. Can only be called after a call to Dart_Initialize.
Dart_SetTimelineRecorderCallback⚠
Register a Dart_TimelineRecorderCallback to be called as timeline events are completed.
Dart_SetVMFlags⚠
Sets command line flags. Should be called before Dart_Initialize.
Dart_SetWeakHandleReturnValue⚠
Dart_ShouldPauseOnExit⚠
If the VM flag --pause-isolates-on-exit was passed this will be true.
Dart_ShouldPauseOnStart⚠
If the VM flag --pause-isolates-on-start was passed this will be true.
Dart_ShutdownIsolate⚠
Shuts down the current isolate. After this call, the current isolate is NULL. Any current scopes created by Dart_EnterScope will be exited. Invokes the shutdown callback and any callbacks of remaining weak persistent handles.
Dart_SortClasses⚠
Sorts the class-ids in depth first traversal order of the inheritance tree. This is a costly operation, but it can make method dispatch more efficient and is done before writing snapshots.
Dart_StartProfiling⚠
Starts the CPU sampling profiler.
Dart_StopProfiling⚠
Stops the CPU sampling profiler.
Dart_StringGetProperties⚠
Retrieves some properties associated with a String. Properties retrieved are:
Dart_StringLength⚠
Gets the length of a String.
Dart_StringStorageSize⚠
Gets the storage size in bytes of a String.
Dart_StringToCString⚠
Gets the C string representation of a String. (It is a sequence of UTF-8 encoded values with a ‘\0’ termination.)
Dart_StringToLatin1⚠
Gets the data corresponding to the string object. This function returns the data only for Latin-1 (ISO-8859-1) string objects. For all other string objects it returns an error.
Dart_StringToUTF8⚠
Gets a UTF-8 encoded representation of a String.
Dart_StringToUTF16⚠
Gets the UTF-16 encoded representation of a string.
Dart_ThreadDisableProfiling⚠
Notifies the VM that the current thread should not be profiled until a matching call to Dart_ThreadEnableProfiling is made.
Dart_ThreadEnableProfiling⚠
Notifies the VM that the current thread should be profiled.
Dart_ThrowException⚠
Throws an exception.
Dart_TimelineEvent⚠
Add a timeline event to the embedder stream.
Dart_TimelineGetMicros⚠
Returns a timestamp in microseconds. This timestamp is suitable for passing into the timeline system, and uses the same monotonic clock as dart:developer’s Timeline.now.
Dart_TimelineGetTicks⚠
Returns a raw timestamp in from the monotonic clock.
Dart_TimelineGetTicksFrequency⚠
Returns the frequency of the monotonic clock.
Dart_ToString⚠
Converts an object to a string.
Dart_True⚠
Returns the True object.
Dart_TypeDynamic⚠
Returns types that are not classes, and which therefore cannot be looked up as library members by Dart_GetType.
Dart_TypeNever⚠
Dart_TypeToNonNullableType⚠
Creates a non-nullable version of the provided type.
Dart_TypeToNullableType⚠
Creates a nullable version of the provided type.
Dart_TypeVoid⚠
Dart_TypedDataAcquireData⚠
Acquires access to the internal data address of a TypedData object.
Dart_TypedDataReleaseData⚠
Releases access to the internal data address that was acquired earlier using Dart_TypedDataAcquireData.
Dart_VersionString⚠
Gets the version string for the Dart VM.
Dart_WaitForEvent⚠
Drains the microtask queue, then blocks the calling thread until the current isolate receives a message, then handles all messages.
Dart_WriteHeapSnapshot⚠
Generate heap snapshot of the current isolate group and stream it into the given callback. VM would produce snapshot in chunks and send these chunks one by one back to the embedder by invoking the provided callback.
Dart_WriteProfileToTimeline⚠
Writes the CPU profile to the timeline as a series of ‘instant’ events.
__report_gsfailure⚠
__security_check_cookie⚠
__security_init_cookie⚠
__va_start⚠
_invalid_parameter_noinfo⚠
_invalid_parameter_noinfo_noreturn⚠
_invoke_watson⚠
_strtoimax_l⚠
_strtoumax_l⚠
_wassert⚠
_wcstoimax_l⚠
_wcstoumax_l⚠
imaxabs⚠
imaxdiv⚠
strtoimax⚠
strtoumax⚠
wcstoimax⚠
wcstoumax⚠

Type Aliases§

Dart_CObject
Dart_CloseNativePort_Type
Dart_CreateLoadingUnitCallback
Dart_CurrentIsolate_Type
Dart_DeferredLoadHandler
Handles deferred loading requests. When this handler is invoked, it should eventually load the deferred loading unit with the given id and call Dart_DeferredLoadComplete or Dart_DeferredLoadCompleteError. It is recommended that the loading occur asynchronously, but it is permitted to call Dart_DeferredLoadComplete or Dart_DeferredLoadCompleteError before the handler returns.
Dart_DeleteFinalizableHandle_Type
Dart_DeletePersistentHandle_Type
Dart_DeleteWeakPersistentHandle_Type
Dart_DwarfStackTraceFootnoteCallback
Callback provided by the embedder that is used by the VM to produce footnotes appended to DWARF stack traces.
Dart_EmbedderInformationCallback
Callback provided by the embedder that is used by the VM to request information.
Dart_EnterIsolate_Type
Dart_EnterScope_Type
Dart_EntropySource
Dart_EnvironmentCallback
An environment lookup callback function.
Dart_ErrorGetException_Type
Dart_ErrorGetStackTrace_Type
Dart_ErrorHasException_Type
Dart_ExitIsolate_Type
Dart_ExitScope_Type
Dart_FfiNativeResolver
FFI Native C function pointer resolver callback.
Dart_FileCloseCallback
Closes the opened file.
Dart_FileModifiedCallback
A callback which determines whether the file at some url has been modified since some time. If the file cannot be found, true should be returned.
Dart_FileOpenCallback
Opens a file for reading or writing.
Dart_FileReadCallback
Read contents of file.
Dart_FileWriteCallback
Write data into file.
Dart_FinalizableHandle
Dart_GetError_Type
Dart_GetVMServiceAssetsArchive
Callback provided by the embedder that is used by the vmservice isolate to request the asset archive. The asset archive must be an uncompressed tar archive that is stored in a Uint8List.
Dart_Handle
An object reference managed by the Dart VM garbage collector.
Dart_HandleFinalizer
Dart_HandleFromPersistent_Type
Dart_HandleFromWeakPersistent_Type
Dart_HeapSamplingCreateCallback
Dart_HeapSamplingDeleteCallback
Dart_HeapSamplingReportCallback
Dart_HeapSnapshotWriteChunkCallback
Callback provided by the caller of Dart_WriteHeapSnapshot which is used to write out chunks of the requested heap snapshot.
Dart_InitializeIsolateCallback
An isolate initialization callback function.
Dart_IsApiError_Type
Dart_IsCompilationError_Type
Dart_IsError_Type
Dart_IsFatalError_Type
Dart_IsNull_Type
Dart_IsUnhandledExceptionError_Type
Dart_Isolate
An isolate is the unit of concurrency in Dart. Each isolate has its own memory and thread of control. No state is shared between isolates. Instead, isolates communicate by message passing.
Dart_IsolateCleanupCallback
An isolate cleanup callback function.
Dart_IsolateGroup
Dart_IsolateGroupCleanupCallback
An isolate group cleanup callback function.
Dart_IsolateGroupCreateCallback
An isolate creation and initialization callback function.
Dart_IsolateGroupId
Gets an id that uniquely identifies current isolate group.
Dart_IsolateShutdownCallback
An isolate shutdown callback function.
Dart_LibraryTagHandler
The library tag handler is a multi-purpose callback provided by the embedder to the Dart VM. The embedder implements the tag handler to provide the ability to load Dart scripts and imports.
Dart_MessageNotifyCallback
A message notification callback.
Dart_NativeArgument_Descriptor
Dart_NativeArgument_Value
Dart_NativeArguments
The arguments to a native function.
Dart_NativeEntryResolver
Native entry resolution callback.
Dart_NativeEntrySymbol
Native entry symbol lookup callback.
Dart_NativeFunction
A native function.
Dart_NativeMessageHandler
A native message handler.
Dart_NativeMessageHandler_DL
Dart_NewApiError_Type
Dart_NewCompilationError_Type
Dart_NewFinalizableHandle_Type
Dart_NewNativePort_Type
Dart_NewPersistentHandle_Type
Dart_NewSendPort_Type
Dart_NewUnhandledExceptionError_Type
Dart_NewWeakPersistentHandle_Type
Dart_OnNewCodeCallback
Callback provided by the embedder that is used by the VM to notify on code object creation, before it is invoked the first time. This is useful for embedders wanting to e.g. keep track of PCs beyond the lifetime of the garbage collected code objects. Note that an address range may be used by more than one code object over the lifecycle of a process. Clients of this function should record timestamps for these compilation events and when collecting PCs to disambiguate reused address ranges.
Dart_PersistentHandle
Dart_Port
A port is used to send or receive inter-isolate messages
Dart_Port_DL
Dart_PostCObject_Type
Dart_PostInteger_Type
Dart_Post_Type
Dart_PropagateError_Type
Dart_RegisterKernelBlobCallback
Optional callback provided by the embedder that is used by the VM to implement registration of kernel blobs for the subsequent Isolate.spawnUri If no callback is provided, the registration of kernel blobs will throw an error.
Dart_SendPortGetId_Type
Dart_ServiceRequestCallback
A service request callback function.
Dart_ServiceStreamCancelCallback
A callback invoked when the VM service gets a request to cancel some stream.
Dart_ServiceStreamListenCallback
A callback invoked when the VM service gets a request to listen to some stream.
Dart_SetPersistentHandle_Type
Dart_StreamingCloseCallback
Dart_StreamingWriteCallback
Dart_ThreadExitCallback
A thread death callback function. This callback, provided by the embedder, is called before a thread in the vm thread pool exits. This function could be used to dispose of native resources that are associated and attached to the thread, in order to avoid leaks.
Dart_ThreadStartCallback
A thread start callback function. This callback, provided by the embedder, is called after a thread in the vm thread pool starts. This function could be used to adjust thread priority or attach native resources to the thread.
Dart_TimelineRecorderCallback
Callback provided by the embedder to handle the completion of timeline events.
Dart_UnregisterKernelBlobCallback
Optional callback provided by the embedder that is used by the VM to unregister kernel blobs. If no callback is provided, the unregistration of kernel blobs will throw an error.
Dart_UpdateExternalSize_Type
Dart_UpdateFinalizableExternalSize_Type
Dart_WeakPersistentHandle
__crt_bool
__time32_t
__time64_t
__vcrt_bool
_locale_t
errno_t
imaxdiv_t
int_fast8_t
int_fast16_t
int_fast32_t
int_fast64_t
int_least8_t
int_least16_t
int_least32_t
int_least64_t
intmax_t
mbstate_t
rsize_t
time_t
uint_fast8_t
uint_fast16_t
uint_fast32_t
uint_fast64_t
uint_least8_t
uint_least16_t
uint_least32_t
uint_least64_t
uintmax_t
va_list
wchar_t
wctype_t
wint_t

Unions§

_Dart_CObject__bindgen_ty_1
_Dart_NativeArgument_Value