Flutter Engine
The Flutter Engine
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
tonic::DartConverter< unsigned long long > Struct Reference

#include <dart_converter.h>

Public Types

using FfiType = unsigned long long
 

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)
 
static const char * GetFfiRepresentation ()
 
static const char * GetDartRepresentation ()
 
static bool AllowedInLeafCall ()
 
static FfiType FromFfi (FfiType val)
 
static FfiType ToFfi (FfiType val)
 

Static Public Attributes

static constexpr const char * kFfiRepresentation = "Uint64"
 
static constexpr const char * kDartRepresentation = "int"
 
static constexpr bool kAllowedInLeafCall = true
 

Detailed Description

Definition at line 153 of file dart_converter.h.

Member Typedef Documentation

◆ FfiType

using tonic::DartConverter< unsigned long long >::FfiType = unsigned long long

Definition at line 154 of file dart_converter.h.

Member Function Documentation

◆ AllowedInLeafCall()

static bool tonic::DartConverter< unsigned long long >::AllowedInLeafCall ( )
inlinestatic

Definition at line 193 of file dart_converter.h.

193{ return kAllowedInLeafCall; }

◆ FromArguments()

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

Definition at line 183 of file dart_converter.h.

185 {
186 int64_t result = 0;
188 return result;
189 }
DART_EXPORT Dart_Handle Dart_GetNativeIntegerArgument(Dart_NativeArguments args, int index, int64_t *value)
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
GAsyncResult * result

◆ FromDart()

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

Definition at line 177 of file dart_converter.h.

177 {
178 int64_t result = 0;
179 Dart_IntegerToInt64(handle, &result);
180 return result;
181 }
DART_EXPORT Dart_Handle Dart_IntegerToInt64(Dart_Handle integer, int64_t *value)

◆ FromFfi()

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

Definition at line 194 of file dart_converter.h.

194 {
195 TONIC_DCHECK(val <= 0x7fffffffffffffffLL);
196 return val;
197 }
#define TONIC_DCHECK
Definition: macros.h:32

◆ GetDartRepresentation()

static const char * tonic::DartConverter< unsigned long long >::GetDartRepresentation ( )
inlinestatic

Definition at line 192 of file dart_converter.h.

192{ return kDartRepresentation; }
static constexpr const char * kDartRepresentation

◆ GetFfiRepresentation()

static const char * tonic::DartConverter< unsigned long long >::GetFfiRepresentation ( )
inlinestatic

Definition at line 191 of file dart_converter.h.

191{ return kFfiRepresentation; }
static constexpr const char * kFfiRepresentation

◆ SetReturnValue()

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

Definition at line 171 of file dart_converter.h.

172 {
173 TONIC_DCHECK(val <= 0x7fffffffffffffffLL);
175 }
DART_EXPORT void Dart_SetIntegerReturnValue(Dart_NativeArguments args, int64_t retval)

◆ ToDart()

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

Definition at line 166 of file dart_converter.h.

166 {
167 TONIC_DCHECK(val <= 0x7fffffffffffffffLL);
168 return Dart_NewInteger(static_cast<int64_t>(val));
169 }
DART_EXPORT Dart_Handle Dart_NewInteger(int64_t value)

◆ ToFfi()

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

Definition at line 199 of file dart_converter.h.

199 {
200 TONIC_DCHECK(val <= 0x7fffffffffffffffLL);
201 return val;
202 }

Member Data Documentation

◆ kAllowedInLeafCall

constexpr bool tonic::DartConverter< unsigned long long >::kAllowedInLeafCall = true
staticconstexpr

Definition at line 157 of file dart_converter.h.

◆ kDartRepresentation

constexpr const char* tonic::DartConverter< unsigned long long >::kDartRepresentation = "int"
staticconstexpr

Definition at line 156 of file dart_converter.h.

◆ kFfiRepresentation

constexpr const char* tonic::DartConverter< unsigned long long >::kFfiRepresentation = "Uint64"
staticconstexpr

Definition at line 155 of file dart_converter.h.


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