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

#include <dart_byte_data.h>

Static Public Member Functions

static void SetReturnValue (Dart_NativeArguments args, DartByteData val)
 
static DartByteData FromArguments (Dart_NativeArguments args, int index, Dart_Handle &exception)
 

Detailed Description

template<>
struct tonic::DartConverter< DartByteData >

Definition at line 44 of file dart_byte_data.h.

Member Function Documentation

◆ FromArguments()

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

Definition at line 93 of file dart_byte_data.cc.

References tonic::DartByteData::DartByteData(), tonic::LogIfError(), and TONIC_DCHECK.

96  {
97  Dart_Handle data = Dart_GetNativeArgument(args, index);
98  TONIC_DCHECK(!LogIfError(data));
99  return DartByteData(data);
100 }
G_BEGIN_DECLS FlValue * args
#define TONIC_DCHECK
Definition: macros.h:32
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
Definition: switches.h:41
bool LogIfError(Dart_Handle handle)
Definition: dart_error.cc:15

◆ SetReturnValue()

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

Definition at line 102 of file dart_byte_data.cc.

References tonic::DartByteData::dart_handle().

103  {
104  Dart_SetReturnValue(args, val.dart_handle());
105 }
G_BEGIN_DECLS FlValue * args

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