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

#include <dart_converter.h>

Public Types

using NativeType = bool
 
using FfiType = bool
 

Static Public Member Functions

static Dart_Handle ToDart (NativeType val)
 
static void SetReturnValue (Dart_NativeArguments args, bool 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 = "Bool"
 
static constexpr const char * kDartRepresentation = "bool"
 
static constexpr bool kAllowedInLeafCall = true
 

Detailed Description

Definition at line 54 of file dart_converter.h.

Member Typedef Documentation

◆ FfiType

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

Definition at line 56 of file dart_converter.h.

◆ NativeType

using tonic::DartConverter< bool >::NativeType = bool

Definition at line 55 of file dart_converter.h.

Member Function Documentation

◆ AllowedInLeafCall()

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

Definition at line 85 of file dart_converter.h.

85{ return kAllowedInLeafCall; }
static constexpr bool kAllowedInLeafCall

◆ FromArguments()

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

Definition at line 73 of file dart_converter.h.

75 {
76 bool result = false;
78 return result;
79 }
DART_EXPORT Dart_Handle Dart_GetNativeBooleanArgument(Dart_NativeArguments args, int index, bool *value)
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
GAsyncResult * result

◆ FromDart()

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

Definition at line 67 of file dart_converter.h.

67 {
68 bool result = 0;
69 Dart_BooleanValue(handle, &result);
70 return result;
71 }
DART_EXPORT Dart_Handle Dart_BooleanValue(Dart_Handle boolean_obj, bool *value)

◆ FromFfi()

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

Definition at line 81 of file dart_converter.h.

81{ return val; }

◆ GetDartRepresentation()

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

Definition at line 84 of file dart_converter.h.

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

◆ GetFfiRepresentation()

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

Definition at line 83 of file dart_converter.h.

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

◆ SetReturnValue()

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

Definition at line 63 of file dart_converter.h.

63 {
65 }
DART_EXPORT void Dart_SetBooleanReturnValue(Dart_NativeArguments args, bool retval)

◆ ToDart()

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

Definition at line 61 of file dart_converter.h.

61{ return Dart_NewBoolean(val); }
DART_EXPORT Dart_Handle Dart_NewBoolean(bool value)

◆ ToFfi()

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

Definition at line 82 of file dart_converter.h.

82{ return val; }

Member Data Documentation

◆ kAllowedInLeafCall

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

Definition at line 59 of file dart_converter.h.

◆ kDartRepresentation

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

Definition at line 58 of file dart_converter.h.

◆ kFfiRepresentation

constexpr const char* tonic::DartConverter< bool >::kFfiRepresentation = "Bool"
staticconstexpr

Definition at line 57 of file dart_converter.h.


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