5#ifndef LIB_TONIC_TYPED_DATA_TYPED_LIST_H_
6#define LIB_TONIC_TYPED_DATA_TYPED_LIST_H_
8#include "third_party/dart/runtime/include/dart_api.h"
18template <Dart_TypedData_Type kTypeName,
typename ElemType>
26 ElemType&
at(intptr_t
i) {
31 const ElemType&
at(intptr_t
i)
const {
40 const ElemType*
data()
const {
return data_; }
48 intptr_t num_elements_;
52template <Dart_TypedData_Type kTypeName,
typename ElemType>
56 static constexpr const char* kFfiRepresentation =
"Handle";
57 static constexpr const char* kDartRepresentation =
"Object";
58 static constexpr bool kAllowedInLeafCall =
false;
77#define TONIC_TYPED_DATA_FOREACH(F) \
89#define TONIC_TYPED_DATA_DECLARE(name, type) \
90 using name##List = TypedList<Dart_TypedData_k##name, type>; \
91 extern template class TypedList<Dart_TypedData_k##name, type>; \
92 extern template struct DartConverter<name##List>;
96#undef TONIC_TYPED_DATA_DECLARE
const ElemType * data() const
Dart_Handle dart_handle() const
intptr_t num_elements() const
ElemType & at(intptr_t i)
const ElemType & operator[](intptr_t i) const
ElemType & operator[](intptr_t i)
const ElemType & at(intptr_t i) const
struct _Dart_Handle * Dart_Handle
struct _Dart_NativeArguments * Dart_NativeArguments
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
Dart_Handle ToDart(const T &object)
static FfiType ToFfi(NativeType val)
static const char * GetDartRepresentation()
static NativeType FromFfi(FfiType val)
static bool AllowedInLeafCall()
static const char * GetFfiRepresentation()
#define TONIC_CHECK(condition)
#define TONIC_TYPED_DATA_DECLARE(name, type)
#define TONIC_TYPED_DATA_FOREACH(F)