[][src]Crate dart_sys

Structs

Dart_CodeObserver

Forward declaration

Dart_EmbedderInformation
Dart_InitializeParams

Describes how to initialize the VM. Used with Dart_Initialize.

Dart_IsolateFlags
Dart_KernelCompilationResult
Dart_QualifiedFunctionName
Dart_SourceFile
_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_Handle
_Dart_Isolate
_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

Constants

DART_EMBEDDER_INFORMATION_CURRENT_VERSION
DART_FLAGS_CURRENT_VERSION
DART_INITIALIZE_PARAMS_CURRENT_VERSION
DART_KERNEL_ISOLATE_NAME
DART_TIMELINE_STREAM_ALL
DART_TIMELINE_STREAM_API
DART_TIMELINE_STREAM_COMPILER
DART_TIMELINE_STREAM_DART
DART_TIMELINE_STREAM_DEBUGGER
DART_TIMELINE_STREAM_DISABLE
DART_TIMELINE_STREAM_EMBEDDER
DART_TIMELINE_STREAM_GC
DART_TIMELINE_STREAM_ISOLATE
DART_TIMELINE_STREAM_VM
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_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_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_Ok
Dart_KernelCompilationStatus_Dart_KernelCompilationStatus_Unknown
Dart_LibraryTag_Dart_kCanonicalizeUrl
Dart_LibraryTag_Dart_kImportExtensionTag
Dart_LibraryTag_Dart_kImportTag
Dart_LibraryTag_Dart_kKernelTag
Dart_LibraryTag_Dart_kScriptTag
Dart_LibraryTag_Dart_kSourceTag
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_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_kInt8
Dart_TypedData_Type_Dart_TypedData_kInt16
Dart_TypedData_Type_Dart_TypedData_kInt32
Dart_TypedData_Type_Dart_TypedData_kInt64
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
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_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_EXCEPTIONS
_HAS_NODISCARD
_SAL_VERSION
_SECURECRT_FILL_BUFFER_PATTERN
_USE_ATTRIBUTES_FOR_SAL
_USE_DECLSPECS_FOR_SAL
__GOT_SECURE_LIB__
__SAL_H_VERSION
__STDC_SECURE_LIB__
__STDC_WANT_SECURE_LIB__
__bool_true_false_are_defined
false_
kNativeArgNumberPos
kNativeArgNumberSize
kNativeArgTypePos
kNativeArgTypeSize
true_

Statics

__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_CompileSourcesToKernel
Dart_CompileToKernel
Dart_CreateAppAOTSnapshotAsAssembly

Creates a precompiled snapshot.

Dart_CreateAppAOTSnapshotAsBlobs

Same as Dart_CreateAppAOTSnapshotAsAssembly, except all the pieces are provided directly as bytes that the embedder can load with mmap. The instructions pieces must be loaded with read and execute permissions; the other pieces may be loaded as read-only.

Dart_CreateAppAOTSnapshotAsElf

Creates a precompiled snapshot.

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_CreateSnapshot

Creates a full snapshot of the current isolate heap.

Dart_CreateVMAOTSnapshotAsAssembly

Like Dart_CreateAppAOTSnapshotAsAssembly, but only includes kDartVmSnapshotData and kDartVmSnapshotInstructions.

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_CurrentIsolateGroupData

Returns the callback data associated with the current isolate group. This data was passed to the isolate group when it was created.

Dart_DebugName

Returns the debugging name for the current isolate.

Dart_DefaultCanonicalizeUrl

Canonicalizes a url with respect to some library.

Dart_DeletePersistentHandle

Deallocates a persistent handle.

Dart_DeleteWeakPersistentHandle
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_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 referes 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_GetDataFromByteBuffer

Returns the TypedData object associated with the ByteBuffer object.

Dart_GetError

Gets the error message from an error handle.

Dart_GetField

Gets the value of a field.

Dart_GetImportsOfScheme

Returns a flattened list of pairs. The first element in each pair is the importing library and and the second element is the imported library for each import in the isolate of a library whose URI's scheme is [scheme].

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 arg_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 arg_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 arg_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_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 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_GlobalTimelineSetRecordedStreams

Start recording timeline events for the entire VM (including all isolates).

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_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_IsLibrary
Dart_IsList
Dart_IsMap
Dart_IsNull

Is this object null?

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 set.

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_IsolateHeapGlobalUsedMaxMetric
Dart_IsolateHeapGlobalUsedMetric
Dart_IsolateHeapNewCapacityMaxMetric
Dart_IsolateHeapNewCapacityMetric
Dart_IsolateHeapNewExternalMetric
Dart_IsolateHeapNewUsedMaxMetric
Dart_IsolateHeapNewUsedMetric
Dart_IsolateHeapOldCapacityMaxMetric
Dart_IsolateHeapOldCapacityMetric
Dart_IsolateHeapOldExternalMetric
Dart_IsolateHeapOldUsedMaxMetric
Dart_IsolateHeapOldUsedMetric
Dart_IsolateMakeRunnable

Make isolate runnable.

Dart_IsolateRunnableHeapSizeMetric
Dart_IsolateRunnableLatencyMetric
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_LoadCompilationTrace

Compile all functions from data from Dart_SaveCompilationTrace. Unlike JIT feedback, this data is fuzzy: loading does not need to happen in the exact program that was saved, the saver and loader do not need to agree on checked mode versus production mode or debug/release/product.

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_LoadTypeFeedback

Compile functions using data from Dart_SaveTypeFeedback. The data must from a VM with the same version and compiler flags.

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_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 element type.

Dart_NewListOfType

Returns a List of the desired length with the desired element type.

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_NewWeakPersistentHandle

Allocates a weak persistent handle for an object.

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_ReadAllBytecode
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_RootLibrary

Gets the library for the root script for the current isolate.

Dart_RunLoop

Processes any incoming messages for the current isolate.

Dart_SaveCompilationTrace

Record all functions which have been compiled in the current isolate.

Dart_SaveTypeFeedback

Record runtime feedback for the current isolate, including type feedback and usage counters.

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_ServiceWaitForLoadPort

Returns the port that script load requests should be sent on.

Dart_SetBooleanReturnValue
Dart_SetDartLibrarySourcesKernel

Sets the kernel buffer which will be used to load Dart SDK sources dynamically at runtime.

Dart_SetDoubleReturnValue
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_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_SetField

Sets the value of a field.

Dart_SetFileModifiedCallback
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 an alternative 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_SetNativeServiceStreamCallback

Sets the native VM service stream callbacks for a particular stream. Note: The function may be called on multiple threads concurrently.

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_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_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_ToString

Converts an object to a string.

Dart_True

Returns the True object.

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_VMCurrentRSSMetric
Dart_VMIsolateCountMetric

Return metrics gathered for the VM and individual isolates.

Dart_VMPeakRSSMetric
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 recieves a message, then handles all messages.

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 Definitions

Dart_CObject
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_CoreType_Id
Dart_EmbedderInformationCallback

Callback provided by the embedder that is used by the vm to request information.

Dart_EntropySource
Dart_EnvironmentCallback

An environment lookup callback function.

Dart_FileCloseCallback
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

Callbacks provided by the embedder for file operations. If the embedder does not allow file operations these callbacks can be NULL.

Dart_FileReadCallback
Dart_FileWriteCallback
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_InitializeIsolateCallback

An isolate initialization callback function.

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_IsolateGroupCleanupCallback

An isolate group cleanup callback function.

Dart_IsolateGroupCreateCallback

An isolate creation and initialization callback function.

Dart_IsolateShutdownCallback

An isolate shutdown callback function.

Dart_IsolateUnhandledExceptionCallback

An isolate unhandled exception callback function.

Dart_KernelCompilationStatus

Experimental support for Dart to Kernel parser isolate.

Dart_LibraryTag
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_Type
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_NativeStreamConsumer

A callback invoked when the VM service receives an event.

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_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_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_Timeline_Event_Type
Dart_TypedData_Type
Dart_WeakPersistentHandle
Dart_WeakPersistentHandleFinalizer
__crt_bool
__time32_t
__time64_t
__vcrt_bool
_bindgen_ty_1
_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