Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dart::bin::CObjectTypedData Class Reference

#include <dartutils.h>

Inheritance diagram for dart::bin::CObjectTypedData:
dart::bin::CObject

Public Member Functions

 CObjectTypedData (Dart_CObject *cobject)
 
 CObjectTypedData (CObject *cobject)
 
Dart_TypedData_Type Type () const
 
intptr_t Length () const
 
const uint8_t * Buffer () const
 
- 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 567 of file dartutils.h.

Constructor & Destructor Documentation

◆ CObjectTypedData() [1/2]

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

Definition at line 569 of file dartutils.h.

569 : CObject(cobject) {
571 cobject_ = cobject;
572 }
Dart_CObject_Type type()
Definition dartutils.h:338
Dart_CObject * cobject_
Definition dartutils.h:407
@ Dart_CObject_kTypedData
#define ASSERT(E)

◆ CObjectTypedData() [2/2]

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

Definition at line 573 of file dartutils.h.

573 : CObject() {
574 ASSERT(cobject != nullptr);
575 ASSERT(cobject->type() == Dart_CObject_kTypedData);
576 cobject_ = cobject->AsApiCObject();
577 }

Member Function Documentation

◆ Buffer()

const uint8_t * dart::bin::CObjectTypedData::Buffer ( ) const
inline

Definition at line 583 of file dartutils.h.

union _Dart_CObject::@86 value
struct _Dart_CObject::@86::@90 as_typed_data
struct _Dart_CObject ** values

◆ Length()

intptr_t dart::bin::CObjectTypedData::Length ( ) const
inline

Definition at line 582 of file dartutils.h.

◆ Type()

Dart_TypedData_Type dart::bin::CObjectTypedData::Type ( ) const
inline

Definition at line 579 of file dartutils.h.

579 {
581 }
Dart_CObject_Type type

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