Flutter Engine
The Flutter Engine
Static Public Member Functions | List of all members
tonic::DartConverter< const char * > Struct Reference

#include <dart_converter.h>

Static Public Member Functions

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

Detailed Description

Definition at line 368 of file dart_converter.h.

Member Function Documentation

◆ FromArguments()

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

Definition at line 386 of file dart_converter.h.

388 {
389 return FromDart(Dart_GetNativeArgument(args, index));
390 }
DART_EXPORT Dart_Handle Dart_GetNativeArgument(Dart_NativeArguments args, int index)
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
static const char * FromDart(Dart_Handle handle)

◆ FromDart()

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

Definition at line 377 of file dart_converter.h.

377 {
378 if (Dart_IsNull(handle)) {
379 return nullptr;
380 }
381 const char* result = nullptr;
383 return result;
384 }
DART_EXPORT bool Dart_IsNull(Dart_Handle object)
DART_EXPORT Dart_Handle Dart_StringToCString(Dart_Handle str, const char **cstr)
GAsyncResult * result

◆ SetReturnValue()

static void tonic::DartConverter< const char * >::SetReturnValue ( Dart_NativeArguments  args,
const char *  val 
)
inlinestatic

Definition at line 373 of file dart_converter.h.

373 {
375 }
DART_EXPORT void Dart_SetReturnValue(Dart_NativeArguments args, Dart_Handle retval)
static Dart_Handle ToDart(const char *val)

◆ ToDart()

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

Definition at line 369 of file dart_converter.h.

369 {
370 return Dart_NewStringFromCString(val);
371 }
DART_EXPORT Dart_Handle Dart_NewStringFromCString(const char *str)

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