Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
tonic::DartConverter< Dart_Handle > Struct Reference

#include <dart_converter.h>

Public Types

using NativeType = Dart_Handle
 
using FfiType = Dart_Handle
 

Static Public Member Functions

static Dart_Handle ToDart (NativeType val)
 
static void SetReturnValue (Dart_NativeArguments args, Dart_Handle val)
 
static NativeType FromDart (Dart_Handle handle)
 
static NativeType FromArguments (Dart_NativeArguments args, int index, Dart_Handle &exception)
 
static NativeType FromFfi (FfiType val)
 
static FfiType ToFfi (NativeType val)
 
static const char * GetFfiRepresentation ()
 
static const char * GetDartRepresentation ()
 
static bool AllowedInLeafCall ()
 

Static Public Attributes

static constexpr const char * kFfiRepresentation = "Handle"
 
static constexpr const char * kDartRepresentation = "Object"
 
static constexpr bool kAllowedInLeafCall = false
 

Detailed Description

Definition at line 545 of file dart_converter.h.

Member Typedef Documentation

◆ FfiType

Definition at line 547 of file dart_converter.h.

◆ NativeType

Definition at line 546 of file dart_converter.h.

Member Function Documentation

◆ AllowedInLeafCall()

static bool tonic::DartConverter< Dart_Handle >::AllowedInLeafCall ( )
inlinestatic

Definition at line 572 of file dart_converter.h.

572{ return kAllowedInLeafCall; }
static constexpr bool kAllowedInLeafCall

◆ FromArguments()

static NativeType tonic::DartConverter< Dart_Handle >::FromArguments ( Dart_NativeArguments  args,
int  index,
Dart_Handle exception 
)
inlinestatic

Definition at line 560 of file dart_converter.h.

562 {
565 return result;
566 }
struct _Dart_Handle * Dart_Handle
Definition dart_api.h:258
DART_EXPORT Dart_Handle Dart_GetNativeArgument(Dart_NativeArguments args, int index)
DART_EXPORT bool Dart_IsError(Dart_Handle handle)
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
GAsyncResult * result
#define TONIC_DCHECK
Definition macros.h:32

◆ FromDart()

static NativeType tonic::DartConverter< Dart_Handle >::FromDart ( Dart_Handle  handle)
inlinestatic

Definition at line 558 of file dart_converter.h.

558{ return handle; }

◆ FromFfi()

static NativeType tonic::DartConverter< Dart_Handle >::FromFfi ( FfiType  val)
inlinestatic

Definition at line 568 of file dart_converter.h.

568{ return val; }

◆ GetDartRepresentation()

static const char * tonic::DartConverter< Dart_Handle >::GetDartRepresentation ( )
inlinestatic

Definition at line 571 of file dart_converter.h.

571{ return kDartRepresentation; }
static constexpr const char * kDartRepresentation

◆ GetFfiRepresentation()

static const char * tonic::DartConverter< Dart_Handle >::GetFfiRepresentation ( )
inlinestatic

Definition at line 570 of file dart_converter.h.

570{ return kFfiRepresentation; }
static constexpr const char * kFfiRepresentation

◆ SetReturnValue()

static void tonic::DartConverter< Dart_Handle >::SetReturnValue ( Dart_NativeArguments  args,
Dart_Handle  val 
)
inlinestatic

Definition at line 554 of file dart_converter.h.

554 {
556 }
DART_EXPORT void Dart_SetReturnValue(Dart_NativeArguments args, Dart_Handle retval)

◆ ToDart()

static Dart_Handle tonic::DartConverter< Dart_Handle >::ToDart ( NativeType  val)
inlinestatic

Definition at line 552 of file dart_converter.h.

552{ return val; }

◆ ToFfi()

static FfiType tonic::DartConverter< Dart_Handle >::ToFfi ( NativeType  val)
inlinestatic

Definition at line 569 of file dart_converter.h.

569{ return val; }

Member Data Documentation

◆ kAllowedInLeafCall

constexpr bool tonic::DartConverter< Dart_Handle >::kAllowedInLeafCall = false
staticconstexpr

Definition at line 550 of file dart_converter.h.

◆ kDartRepresentation

constexpr const char* tonic::DartConverter< Dart_Handle >::kDartRepresentation = "Object"
staticconstexpr

Definition at line 549 of file dart_converter.h.

◆ kFfiRepresentation

constexpr const char* tonic::DartConverter< Dart_Handle >::kFfiRepresentation = "Handle"
staticconstexpr

Definition at line 548 of file dart_converter.h.


The documentation for this struct was generated from the following file: