#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 887 of file dartutils.cc.
887 {
888 return &false_;
889}
◆ FileClosedError()
CObject * dart::bin::CObject::FileClosedError |
( |
| ) |
|
|
static |
Definition at line 1032 of file dartutils.cc.
1032 {
1036}
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 1019 of file dartutils.cc.
1019 {
1021 cobject->value.as_external_typed_data.callback(
1022 nullptr, cobject->value.as_external_typed_data.peer);
1023 cobject->value.as_external_typed_data.data = nullptr;
1024}
◆ IllegalArgumentError()
CObject * dart::bin::CObject::IllegalArgumentError |
( |
| ) |
|
|
static |
Definition at line 1026 of file dartutils.cc.
1026 {
1030}
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 936 of file dartutils.cc.
936 {
942 return cobject;
943}
struct _Dart_CObject::@86::@89 as_array
struct _Dart_CObject ** values
◆ NewDouble()
Dart_CObject * dart::bin::CObject::NewDouble |
( |
double |
value | ) |
|
|
static |
Definition at line 921 of file dartutils.cc.
921 {
924 return cobject;
925}
◆ NewExternalUint8Array()
Definition at line 955 of file dartutils.cc.
958 {
965 return cobject;
966}
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 902 of file dartutils.cc.
902 {
905 return cobject;
906}
◆ NewInt64()
Dart_CObject * dart::bin::CObject::NewInt64 |
( |
int64_t |
value | ) |
|
|
static |
Definition at line 908 of file dartutils.cc.
908 {
911 return cobject;
912}
◆ NewIntptr()
Dart_CObject * dart::bin::CObject::NewIntptr |
( |
intptr_t |
value | ) |
|
|
static |
Definition at line 914 of file dartutils.cc.
914 {
915
918 return cobject;
919}
◆ NewIOBuffer()
Dart_CObject * dart::bin::CObject::NewIOBuffer |
( |
int64_t |
length | ) |
|
|
static |
Definition at line 978 of file dartutils.cc.
978 {
979
980
981
983 return nullptr;
984 }
986 if (
data ==
nullptr) {
987 return nullptr;
988 }
991}
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 968 of file dartutils.cc.
970 {
975 return cobject;
976}
@ 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 1038 of file dartutils.cc.
1038 {
1039 OSError os_error;
1041}
static CObject * NewOSError()
◆ NewOSError() [2/2]
Definition at line 1043 of file dartutils.cc.
1043 {
1049 result->SetAt(2, error_message);
1051}
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 927 of file dartutils.cc.
927 {
928 intptr_t
length = strlen(str);
930 char* payload = reinterpret_cast<char*>(cobject + 1);
931 memmove(payload, str,
length + 1);
933 return cobject;
934}
◆ NewUint8Array()
Dart_CObject * dart::bin::CObject::NewUint8Array |
( |
const void * |
data, |
|
|
intptr_t |
length |
|
) |
| |
|
static |
Definition at line 945 of file dartutils.cc.
945 {
947 memmove(
reinterpret_cast<uint8_t*
>(cobject + 1),
data,
length);
951 reinterpret_cast<const uint8_t*>(cobject + 1);
952 return cobject;
953}
◆ 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 993 of file dartutils.cc.
993 {
994 if (cobject == nullptr) return;
996
999
1000
1001 ASSERT(0 <= new_length && new_length <= old_length);
1002
1003
1004
1005
1006 const auto free_memory = old_length - new_length;
1007 if ((old_length >> 2) <= free_memory && 100 <= free_memory) {
1009 if (new_data != nullptr) {
1012 }
1013 }
1014
1015
1017}
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: