Flutter Engine
tonic::DartConverter< bool > Struct Template Reference

#include <dart_converter.h>

Static Public Member Functions

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

Detailed Description

template<>
struct tonic::DartConverter< bool >

Definition at line 43 of file dart_converter.h.

Member Function Documentation

◆ FromArguments()

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

Definition at line 56 of file dart_converter.h.

58  {
59  bool result = false;
60  Dart_GetNativeBooleanArgument(args, index, &result);
61  return result;
62  }
G_BEGIN_DECLS FlValue * args

◆ FromDart()

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

Definition at line 50 of file dart_converter.h.

50  {
51  bool result = 0;
52  Dart_BooleanValue(handle, &result);
53  return result;
54  }

◆ SetReturnValue()

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

Definition at line 46 of file dart_converter.h.

46  {
47  Dart_SetBooleanReturnValue(args, val);
48  }
G_BEGIN_DECLS FlValue * args

◆ ToDart()

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

Definition at line 44 of file dart_converter.h.

44 { return Dart_NewBoolean(val); }

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