Flutter Engine
The Flutter Engine
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
tonic::DartConverter< double > Struct Reference

#include <dart_converter.h>

Public Types

using FfiType = double
 

Static Public Member Functions

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

Static Public Attributes

static constexpr const char * kFfiRepresentation = "Double"
 
static constexpr const char * kDartRepresentation = "double"
 
static constexpr bool kAllowedInLeafCall = true
 

Detailed Description

Definition at line 208 of file dart_converter.h.

Member Typedef Documentation

◆ FfiType

using tonic::DartConverter< double >::FfiType = double

Definition at line 209 of file dart_converter.h.

Member Function Documentation

◆ AllowedInLeafCall()

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

Definition at line 236 of file dart_converter.h.

236{ return kAllowedInLeafCall; }
static constexpr bool kAllowedInLeafCall

◆ FromArguments()

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

Definition at line 226 of file dart_converter.h.

228 {
229 double result = 0;
231 return result;
232 }
DART_EXPORT Dart_Handle Dart_GetNativeDoubleArgument(Dart_NativeArguments args, int index, double *value)
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
GAsyncResult * result

◆ FromDart()

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

Definition at line 220 of file dart_converter.h.

220 {
221 double result = 0;
222 Dart_DoubleValue(handle, &result);
223 return result;
224 }
DART_EXPORT Dart_Handle Dart_DoubleValue(Dart_Handle double_obj, double *value)

◆ FromFfi()

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

Definition at line 234 of file dart_converter.h.

234{ return val; }

◆ GetDartRepresentation()

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

Definition at line 239 of file dart_converter.h.

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

◆ GetFfiRepresentation()

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

Definition at line 238 of file dart_converter.h.

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

◆ SetReturnValue()

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

Definition at line 216 of file dart_converter.h.

216 {
218 }
DART_EXPORT void Dart_SetDoubleReturnValue(Dart_NativeArguments args, double retval)

◆ ToDart()

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

Definition at line 214 of file dart_converter.h.

214{ return Dart_NewDouble(val); }
DART_EXPORT Dart_Handle Dart_NewDouble(double value)

◆ ToFfi()

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

Definition at line 235 of file dart_converter.h.

235{ return val; }

Member Data Documentation

◆ kAllowedInLeafCall

constexpr bool tonic::DartConverter< double >::kAllowedInLeafCall = true
staticconstexpr

Definition at line 212 of file dart_converter.h.

◆ kDartRepresentation

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

Definition at line 211 of file dart_converter.h.

◆ kFfiRepresentation

constexpr const char* tonic::DartConverter< double >::kFfiRepresentation = "Double"
staticconstexpr

Definition at line 210 of file dart_converter.h.


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