Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::bin::CObjectIntptr Class Reference

#include <dartutils.h>

Inheritance diagram for dart::bin::CObjectIntptr:
dart::bin::CObject

Public Member Functions

 CObjectIntptr (Dart_CObject *cobject)
 
 CObjectIntptr (CObject *cobject)
 
intptr_t Value ()
 
- Public Member Functions inherited from dart::bin::CObject
 CObject (Dart_CObject *cobject)
 
Dart_CObject_Type type ()
 
Dart_TypedData_Type byte_array_type ()
 
bool IsNull ()
 
bool IsBool ()
 
bool IsInt32 ()
 
bool IsInt64 ()
 
bool IsInt32OrInt64 ()
 
bool IsIntptr ()
 
bool IsDouble ()
 
bool IsString ()
 
bool IsArray ()
 
bool IsTypedData ()
 
bool IsUint8Array ()
 
bool IsSendPort ()
 
bool IsTrue ()
 
bool IsFalse ()
 
void * operator new (size_t size)
 
Dart_CObjectAsApiCObject ()
 

Additional Inherited Members

- Static Public Member Functions inherited from dart::bin::CObject
static CObjectNull ()
 
static CObjectTrue ()
 
static CObjectFalse ()
 
static CObjectBool (bool value)
 
static Dart_CObjectNewInt32 (int32_t value)
 
static Dart_CObjectNewInt64 (int64_t value)
 
static Dart_CObjectNewIntptr (intptr_t value)
 
static Dart_CObjectNewDouble (double value)
 
static Dart_CObjectNewString (const char *str)
 
static Dart_CObjectNewArray (intptr_t length)
 
static Dart_CObjectNewUint8Array (const void *data, intptr_t length)
 
static Dart_CObjectNewExternalUint8Array (intptr_t length, uint8_t *data, void *peer, Dart_HandleFinalizer callback)
 
static Dart_CObjectNewNativePointer (intptr_t ptr, intptr_t size, Dart_HandleFinalizer callback)
 
static Dart_CObjectNewIOBuffer (int64_t length)
 
static void ShrinkIOBuffer (Dart_CObject *cobject, int64_t new_length)
 
static void FreeIOBufferData (Dart_CObject *object)
 
static CObjectIllegalArgumentError ()
 
static CObjectFileClosedError ()
 
static CObjectNewOSError ()
 
static CObjectNewOSError (OSError *os_error)
 
- Static Public Attributes inherited from dart::bin::CObject
static constexpr int kSuccess = 0
 
static constexpr int kArgumentError = 1
 
static constexpr int kOSError = 2
 
static constexpr int kFileClosedError = 3
 
- Protected Member Functions inherited from dart::bin::CObject
 CObject ()
 
- Protected Attributes inherited from dart::bin::CObject
Dart_CObjectcobject_
 

Detailed Description

Definition at line 491 of file dartutils.h.

Constructor & Destructor Documentation

◆ CObjectIntptr() [1/2]

dart::bin::CObjectIntptr::CObjectIntptr ( Dart_CObject cobject)
inlineexplicit

Definition at line 493 of file dartutils.h.

493 : CObject(cobject) {
495 cobject_ = cobject;
496 }
Dart_CObject_Type type()
Definition: dartutils.h:338
Dart_CObject * cobject_
Definition: dartutils.h:407
@ Dart_CObject_kInt64
@ Dart_CObject_kInt32
#define ASSERT(E)

◆ CObjectIntptr() [2/2]

dart::bin::CObjectIntptr::CObjectIntptr ( CObject cobject)
inlineexplicit

Definition at line 497 of file dartutils.h.

497 : CObject() {
498 ASSERT(cobject != nullptr);
499 ASSERT(cobject->type() == Dart_CObject_kInt64 ||
500 cobject->type() == Dart_CObject_kInt32);
501 cobject_ = cobject->AsApiCObject();
502 }

Member Function Documentation

◆ Value()

intptr_t dart::bin::CObjectIntptr::Value ( )
inline

Definition at line 504 of file dartutils.h.

504 {
505 intptr_t result;
506 if (type() == Dart_CObject_kInt32) {
508 } else {
509 ASSERT(sizeof(result) == 8);
510 result = static_cast<intptr_t>(cobject_->value.as_int64);
511 }
512 return result;
513 }
GAsyncResult * result
union _Dart_CObject::@86 value

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