Flutter Engine
The Flutter Engine
Classes | Namespaces | Macros | Functions
dartutils.h File Reference
#include "bin/isolate_data.h"
#include "include/dart_api.h"
#include "include/dart_native_api.h"
#include "platform/assert.h"
#include "platform/globals.h"
#include "platform/hashmap.h"
#include "platform/syslog.h"

Go to the source code of this file.

Classes

class  dart::bin::CommandLineOptions
 
class  dart::bin::DartUtils
 
class  dart::bin::CObject
 
class  dart::bin::CObjectBool
 
class  dart::bin::CObjectInt32
 
class  dart::bin::CObjectInt64
 
class  dart::bin::CObjectIntptr
 
class  dart::bin::CObjectDouble
 
class  dart::bin::CObjectString
 
class  dart::bin::CObjectArray
 
class  dart::bin::CObjectSendPort
 
class  dart::bin::CObjectTypedData
 
class  dart::bin::CObjectUint8Array
 
class  dart::bin::CObjectExternalUint8Array
 
class  dart::bin::CObjectNativePointer
 
class  dart::bin::ScopedBlockingCall
 
struct  dart::bin::MagicNumberData
 

Namespaces

namespace  dart
 
namespace  dart::bin
 

Macros

#define DECLARE_COBJECT_CONSTRUCTORS(t)
 
#define DECLARE_COBJECT_TYPED_DATA_CONSTRUCTORS(t)
 
#define DECLARE_COBJECT_EXTERNAL_TYPED_DATA_CONSTRUCTORS(t)
 

Functions

static Dart_Handle dart::bin::ThrowIfError (Dart_Handle handle)
 
static void * dart::bin::GetHashmapKeyFromString (char *key)
 

Macro Definition Documentation

◆ DECLARE_COBJECT_CONSTRUCTORS

#define DECLARE_COBJECT_CONSTRUCTORS (   t)
Value:
explicit CObject##t(Dart_CObject* cobject) : CObject(cobject) { \
ASSERT(type() == Dart_CObject_k##t); \
cobject_ = cobject; \
} \
explicit CObject##t(CObject* cobject) : CObject() { \
ASSERT(cobject != nullptr); \
ASSERT(cobject->type() == Dart_CObject_k##t); \
cobject_ = cobject->AsApiCObject(); \
}
GLenum type

Definition at line 423 of file dartutils.h.

◆ DECLARE_COBJECT_EXTERNAL_TYPED_DATA_CONSTRUCTORS

#define DECLARE_COBJECT_EXTERNAL_TYPED_DATA_CONSTRUCTORS (   t)
Value:
explicit CObjectExternal##t##Array(Dart_CObject* cobject) \
: CObject(cobject) { \
ASSERT(byte_array_type() == Dart_TypedData_k##t); \
cobject_ = cobject; \
} \
explicit CObjectExternal##t##Array(CObject* cobject) : CObject() { \
ASSERT(cobject != nullptr); \
ASSERT(cobject->type() == Dart_CObject_kExternalTypedData); \
ASSERT(cobject->byte_array_type() == Dart_TypedData_k##t); \
cobject_ = cobject->AsApiCObject(); \
}
@ Dart_CObject_kExternalTypedData

Definition at line 447 of file dartutils.h.

◆ DECLARE_COBJECT_TYPED_DATA_CONSTRUCTORS

#define DECLARE_COBJECT_TYPED_DATA_CONSTRUCTORS (   t)
Value:
explicit CObject##t##Array(Dart_CObject* cobject) : CObject(cobject) { \
ASSERT(type() == Dart_CObject_kTypedData); \
ASSERT(byte_array_type() == Dart_TypedData_k##t); \
cobject_ = cobject; \
} \
explicit CObject##t##Array(CObject* cobject) : CObject() { \
ASSERT(cobject != nullptr); \
ASSERT(cobject->type() == Dart_CObject_kTypedData); \
ASSERT(cobject->byte_array_type() == Dart_TypedData_k##t); \
cobject_ = cobject->AsApiCObject(); \
}
@ Dart_CObject_kTypedData

Definition at line 434 of file dartutils.h.