#include <dart_converter.h>
Definition at line 327 of file dart_converter.h.
◆ FfiType
◆ NativeType
◆ AllowedInLeafCall()
◆ FromArguments()
Definition at line 354 of file dart_converter.h.
356 {
358 }
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
static NativeType FromDart(Dart_Handle handle)
References args.
◆ FromDart()
Definition at line 343 of file dart_converter.h.
343 {
344 if (Dart_IsNull(handle)) {
345 return std::u16string();
346 }
348 Dart_StringLength(handle, &
length);
350 Dart_StringToUTF16(handle,
data.data(), &
length);
351 return std::u16string(
reinterpret_cast<char16_t*
>(
data.data()),
length);
352 }
std::shared_ptr< const fml::Mapping > data
References data, and length.
◆ FromFfi()
◆ GetDartRepresentation()
Definition at line 363 of file dart_converter.h.
static constexpr const char * kDartRepresentation
◆ GetFfiRepresentation()
Definition at line 362 of file dart_converter.h.
static constexpr const char * kFfiRepresentation
◆ SetReturnValue()
◆ ToDart()
Definition at line 334 of file dart_converter.h.
334 {
335 return Dart_NewStringFromUTF16(
336 reinterpret_cast<const uint16_t*>(val.data()), val.length());
337 }
◆ ToFfi()
◆ kAllowedInLeafCall
◆ kDartRepresentation
◆ kFfiRepresentation
The documentation for this struct was generated from the following file: