Flutter Engine
tonic::DartConverter< unsigned long long > Struct Template Reference

#include <dart_converter.h>

Static Public Member Functions

static Dart_Handle ToDart (unsigned long long val)
 
static void SetReturnValue (Dart_NativeArguments args, unsigned long long val)
 
static unsigned long long FromDart (Dart_Handle handle)
 
static unsigned long long FromArguments (Dart_NativeArguments args, int index, Dart_Handle &exception)
 

Detailed Description

template<>
struct tonic::DartConverter< unsigned long long >

Definition at line 108 of file dart_converter.h.

Member Function Documentation

◆ FromArguments()

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

Definition at line 133 of file dart_converter.h.

135  {
136  int64_t result = 0;
137  Dart_GetNativeIntegerArgument(args, index, &result);
138  return result;
139  }

◆ FromDart()

static unsigned long long tonic::DartConverter< unsigned long long >::FromDart ( Dart_Handle  handle)
inlinestatic

Definition at line 127 of file dart_converter.h.

127  {
128  int64_t result = 0;
129  Dart_IntegerToInt64(handle, &result);
130  return result;
131  }

◆ SetReturnValue()

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

Definition at line 121 of file dart_converter.h.

References TONIC_DCHECK.

122  {
123  TONIC_DCHECK(val <= 0x7fffffffffffffffLL);
124  Dart_SetIntegerReturnValue(args, val);
125  }
#define TONIC_DCHECK
Definition: macros.h:32

◆ ToDart()

static Dart_Handle tonic::DartConverter< unsigned long long >::ToDart ( unsigned long long  val)
inlinestatic

Definition at line 116 of file dart_converter.h.

References TONIC_DCHECK.

116  {
117  TONIC_DCHECK(val <= 0x7fffffffffffffffLL);
118  return Dart_NewInteger(static_cast<int64_t>(val));
119  }
#define TONIC_DCHECK
Definition: macros.h:32

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