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

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 

Definition at line 95 of file dart_byte_data.cc.

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

98  {
99  Dart_Handle data = Dart_GetNativeArgument(args, index);
100  TONIC_DCHECK(!LogIfError(data));
101  return DartByteData(data);
102 }
Definition: macros.h:32
bool LogIfError(Dart_Handle handle)
Definition: dart_error.cc:15

◆ SetReturnValue()

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

Definition at line 104 of file dart_byte_data.cc.

References tonic::DartByteData::dart_handle().

105  {
106  Dart_SetReturnValue(args, val.dart_handle());
107 }

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