#include <dart_converter.h>
Definition at line 286 of file dart_converter.h.
◆ FfiType
◆ NativeType
◆ AllowedInLeafCall()
◆ FromArguments()
Definition at line 313 of file dart_converter.h.
315 {
317 }
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
static NativeType FromDart(Dart_Handle handle)
References args.
◆ FromDart()
Definition at line 302 of file dart_converter.h.
302 {
303 if (Dart_IsNull(handle)) {
304 return std::string();
305 }
306 uint8_t*
data =
nullptr;
308 if (Dart_IsError(Dart_StringToUTF8(handle, &
data, &
length)))
309 return std::string();
310 return std::string(
reinterpret_cast<char*
>(
data),
length);
311 }
std::shared_ptr< const fml::Mapping > data
References data, and length.
◆ FromFfi()
◆ GetDartRepresentation()
Definition at line 322 of file dart_converter.h.
static constexpr const char * kDartRepresentation
◆ GetFfiRepresentation()
Definition at line 321 of file dart_converter.h.
static constexpr const char * kFfiRepresentation
◆ SetReturnValue()
◆ ToDart()
Definition at line 293 of file dart_converter.h.
293 {
294 return Dart_NewStringFromUTF8(reinterpret_cast<const uint8_t*>(val.data()),
295 val.length());
296 }
◆ ToFfi()
◆ kAllowedInLeafCall
◆ kDartRepresentation
◆ kFfiRepresentation
The documentation for this struct was generated from the following file: