Flutter Engine
tonic::DartConverterFloatingPoint< T > Struct Template Reference

#include <dart_converter.h>

Static Public Member Functions

static Dart_Handle ToDart (T val)
 
static void SetReturnValue (Dart_NativeArguments args, T val)
 
static T FromDart (Dart_Handle handle)
 
static T FromArguments (Dart_NativeArguments args, int index, Dart_Handle &exception)
 

Detailed Description

template<typename T>
struct tonic::DartConverterFloatingPoint< T >

Definition at line 143 of file dart_converter.h.

Member Function Documentation

◆ FromArguments()

template<typename T>
static T tonic::DartConverterFloatingPoint< T >::FromArguments ( Dart_NativeArguments  args,
int  index,
Dart_Handle &  exception 
)
inlinestatic

Definition at line 156 of file dart_converter.h.

158  {
159  double result = 0;
160  Dart_GetNativeDoubleArgument(args, index, &result);
161  return result;
162  }
G_BEGIN_DECLS FlValue * args

◆ FromDart()

template<typename T>
static T tonic::DartConverterFloatingPoint< T >::FromDart ( Dart_Handle  handle)
inlinestatic

Definition at line 150 of file dart_converter.h.

150  {
151  double result = 0;
152  Dart_DoubleValue(handle, &result);
153  return result;
154  }

◆ SetReturnValue()

template<typename T>
static void tonic::DartConverterFloatingPoint< T >::SetReturnValue ( Dart_NativeArguments  args,
val 
)
inlinestatic

Definition at line 146 of file dart_converter.h.

146  {
147  Dart_SetDoubleReturnValue(args, val);
148  }
G_BEGIN_DECLS FlValue * args

◆ ToDart()

template<typename T>
static Dart_Handle tonic::DartConverterFloatingPoint< T >::ToDart ( val)
inlinestatic

Definition at line 144 of file dart_converter.h.

144 { return Dart_NewDouble(val); }

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