Flutter Engine
The Flutter Engine
Public Types | Static Public Member Functions | List of all members
tonic::DartConverter< DartByteData > Struct Reference

#include <dart_byte_data.h>

Public Types

using FfiType = Dart_Handle
 

Static Public Member Functions

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

Detailed Description

Definition at line 45 of file dart_byte_data.h.

Member Typedef Documentation

◆ FfiType

Definition at line 46 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.

96 {
99 return DartByteData(data);
100}
struct _Dart_Handle * Dart_Handle
Definition: dart_api.h:258
DART_EXPORT Dart_Handle Dart_GetNativeArgument(Dart_NativeArguments args, int index)
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
bool CheckAndHandleError(Dart_Handle handle)
Definition: dart_error.cc:33
std::shared_ptr< const fml::Mapping > data
Definition: texture_gles.cc:63
#define TONIC_DCHECK
Definition: macros.h:32

◆ FromFfi()

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

Definition at line 53 of file dart_byte_data.h.

53{ return DartByteData(val); }

◆ SetReturnValue()

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

Definition at line 102 of file dart_byte_data.cc.

103 {
104 Dart_SetReturnValue(args, val.dart_handle());
105}
DART_EXPORT void Dart_SetReturnValue(Dart_NativeArguments args, Dart_Handle retval)

◆ ToFfi()

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

Definition at line 54 of file dart_byte_data.h.

54{ return val.dart_handle(); }

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