#include <dartutils.h>
Definition at line 329 of file dartutils.h.
◆ CObject() [1/2]
◆ CObject() [2/2]
dart::bin::CObject::CObject |
( |
| ) |
|
|
inlineprotected |
◆ AsApiCObject()
◆ Bool()
CObject * dart::bin::CObject::Bool |
( |
bool |
value | ) |
|
|
static |
◆ byte_array_type()
Definition at line 339 of file dartutils.h.
339 {
343 }
@ Dart_CObject_kTypedData
@ Dart_CObject_kExternalTypedData
union _Dart_CObject::@86 value
struct _Dart_CObject::@86::@90 as_typed_data
◆ False()
CObject * dart::bin::CObject::False |
( |
| ) |
|
|
static |
Definition at line 893 of file dartutils.cc.
893 {
894 return &false_;
895}
◆ FileClosedError()
CObject * dart::bin::CObject::FileClosedError |
( |
| ) |
|
|
static |
Definition at line 1038 of file dartutils.cc.
1038 {
1042}
static constexpr int kFileClosedError
static Dart_CObject * NewArray(intptr_t length)
static Dart_CObject * NewInt32(int32_t value)
◆ FreeIOBufferData()
void dart::bin::CObject::FreeIOBufferData |
( |
Dart_CObject * |
object | ) |
|
|
static |
Definition at line 1025 of file dartutils.cc.
1025 {
1027 cobject->value.as_external_typed_data.callback(
1028 nullptr, cobject->value.as_external_typed_data.peer);
1029 cobject->value.as_external_typed_data.data = nullptr;
1030}
◆ IllegalArgumentError()
CObject * dart::bin::CObject::IllegalArgumentError |
( |
| ) |
|
|
static |
Definition at line 1032 of file dartutils.cc.
1032 {
1036}
static constexpr int kArgumentError
◆ IsArray()
bool dart::bin::CObject::IsArray |
( |
| ) |
|
|
inline |
◆ IsBool()
bool dart::bin::CObject::IsBool |
( |
| ) |
|
|
inline |
◆ IsDouble()
bool dart::bin::CObject::IsDouble |
( |
| ) |
|
|
inline |
◆ IsFalse()
bool dart::bin::CObject::IsFalse |
( |
| ) |
|
|
inline |
◆ IsInt32()
bool dart::bin::CObject::IsInt32 |
( |
| ) |
|
|
inline |
◆ IsInt32OrInt64()
bool dart::bin::CObject::IsInt32OrInt64 |
( |
| ) |
|
|
inline |
◆ IsInt64()
bool dart::bin::CObject::IsInt64 |
( |
| ) |
|
|
inline |
◆ IsIntptr()
bool dart::bin::CObject::IsIntptr |
( |
| ) |
|
|
inline |
◆ IsNull()
bool dart::bin::CObject::IsNull |
( |
| ) |
|
|
inline |
◆ IsSendPort()
bool dart::bin::CObject::IsSendPort |
( |
| ) |
|
|
inline |
◆ IsString()
bool dart::bin::CObject::IsString |
( |
| ) |
|
|
inline |
◆ IsTrue()
bool dart::bin::CObject::IsTrue |
( |
| ) |
|
|
inline |
◆ IsTypedData()
bool dart::bin::CObject::IsTypedData |
( |
| ) |
|
|
inline |
◆ IsUint8Array()
bool dart::bin::CObject::IsUint8Array |
( |
| ) |
|
|
inline |
Definition at line 355 of file dartutils.h.
355 {
358 }
Dart_TypedData_Type byte_array_type()
◆ NewArray()
Dart_CObject * dart::bin::CObject::NewArray |
( |
intptr_t |
length | ) |
|
|
static |
Definition at line 942 of file dartutils.cc.
942 {
948 return cobject;
949}
struct _Dart_CObject::@86::@89 as_array
struct _Dart_CObject ** values
◆ NewDouble()
Dart_CObject * dart::bin::CObject::NewDouble |
( |
double |
value | ) |
|
|
static |
Definition at line 927 of file dartutils.cc.
927 {
930 return cobject;
931}
◆ NewExternalUint8Array()
Definition at line 961 of file dartutils.cc.
964 {
971 return cobject;
972}
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
static int8_t data[kExtLength]
Dart_HandleFinalizer callback
struct _Dart_CObject::@86::@91 as_external_typed_data
◆ NewInt32()
Dart_CObject * dart::bin::CObject::NewInt32 |
( |
int32_t |
value | ) |
|
|
static |
Definition at line 908 of file dartutils.cc.
908 {
911 return cobject;
912}
◆ NewInt64()
Dart_CObject * dart::bin::CObject::NewInt64 |
( |
int64_t |
value | ) |
|
|
static |
Definition at line 914 of file dartutils.cc.
914 {
917 return cobject;
918}
◆ NewIntptr()
Dart_CObject * dart::bin::CObject::NewIntptr |
( |
intptr_t |
value | ) |
|
|
static |
Definition at line 920 of file dartutils.cc.
920 {
921
924 return cobject;
925}
◆ NewIOBuffer()
Dart_CObject * dart::bin::CObject::NewIOBuffer |
( |
int64_t |
length | ) |
|
|
static |
Definition at line 984 of file dartutils.cc.
984 {
985
986
987
989 return nullptr;
990 }
992 if (
data ==
nullptr) {
993 return nullptr;
994 }
997}
static Dart_CObject * NewExternalUint8Array(intptr_t length, uint8_t *data, void *peer, Dart_HandleFinalizer callback)
static void Finalizer(void *isolate_callback_data, void *buffer)
static Dart_Handle Allocate(intptr_t size, uint8_t **buffer)
constexpr intptr_t kIntptrMax
◆ NewNativePointer()
Definition at line 974 of file dartutils.cc.
976 {
981 return cobject;
982}
@ Dart_CObject_kNativePointer
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
struct _Dart_CObject::@86::@92 as_native_pointer
◆ NewOSError() [1/2]
CObject * dart::bin::CObject::NewOSError |
( |
| ) |
|
|
static |
Definition at line 1044 of file dartutils.cc.
1044 {
1045 OSError os_error;
1047}
static CObject * NewOSError()
◆ NewOSError() [2/2]
Definition at line 1049 of file dartutils.cc.
1049 {
1055 result->SetAt(2, error_message);
1057}
static Dart_CObject * NewString(const char *str)
static constexpr int kOSError
◆ NewString()
Dart_CObject * dart::bin::CObject::NewString |
( |
const char * |
str | ) |
|
|
static |
Definition at line 933 of file dartutils.cc.
933 {
934 intptr_t
length = strlen(str);
936 char* payload = reinterpret_cast<char*>(cobject + 1);
937 memmove(payload, str,
length + 1);
939 return cobject;
940}
◆ NewUint8Array()
Dart_CObject * dart::bin::CObject::NewUint8Array |
( |
const void * |
data, |
|
|
intptr_t |
length |
|
) |
| |
|
static |
Definition at line 951 of file dartutils.cc.
951 {
953 memmove(
reinterpret_cast<uint8_t*
>(cobject + 1),
data,
length);
957 reinterpret_cast<const uint8_t*>(cobject + 1);
958 return cobject;
959}
◆ Null()
CObject * dart::bin::CObject::Null |
( |
| ) |
|
|
static |
◆ operator new()
void * dart::bin::CObject::operator new |
( |
size_t |
size | ) |
|
|
inline |
Definition at line 369 of file dartutils.h.
DART_EXPORT uint8_t * Dart_ScopeAllocate(intptr_t size)
◆ ShrinkIOBuffer()
void dart::bin::CObject::ShrinkIOBuffer |
( |
Dart_CObject * |
cobject, |
|
|
int64_t |
new_length |
|
) |
| |
|
static |
Definition at line 999 of file dartutils.cc.
999 {
1000 if (cobject == nullptr) return;
1002
1005
1006
1007 ASSERT(0 <= new_length && new_length <= old_length);
1008
1009
1010
1011
1012 const auto free_memory = old_length - new_length;
1013 if ((old_length >> 2) <= free_memory && 100 <= free_memory) {
1015 if (new_data != nullptr) {
1018 }
1019 }
1020
1021
1023}
static uint8_t * Reallocate(uint8_t *buffer, intptr_t new_size)
◆ True()
CObject * dart::bin::CObject::True |
( |
| ) |
|
|
static |
◆ type()
◆ cobject_
◆ kArgumentError
constexpr int dart::bin::CObject::kArgumentError = 1 |
|
staticconstexpr |
◆ kFileClosedError
constexpr int dart::bin::CObject::kFileClosedError = 3 |
|
staticconstexpr |
◆ kOSError
constexpr int dart::bin::CObject::kOSError = 2 |
|
staticconstexpr |
◆ kSuccess
constexpr int dart::bin::CObject::kSuccess = 0 |
|
staticconstexpr |
The documentation for this class was generated from the following files: