#include <io_buffer.h>
Definition at line 14 of file io_buffer.h.
◆ Allocate() [1/2]
uint8_t * dart::bin::IOBuffer::Allocate |
( |
intptr_t |
size | ) |
|
|
static |
Definition at line 30 of file io_buffer.cc.
30 {
31 return static_cast<uint8_t*
>(
calloc(
size,
sizeof(uint8_t)));
32}
void * calloc(size_t n, size_t size)
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
◆ Allocate() [2/2]
Dart_Handle dart::bin::IOBuffer::Allocate |
( |
intptr_t |
size, |
|
|
uint8_t ** |
buffer |
|
) |
| |
|
static |
Definition at line 12 of file io_buffer.cc.
12 {
14 if (
data ==
nullptr) {
16 }
19
23 }
26 }
28}
static void Free(void *buffer)
static void Finalizer(void *isolate_callback_data, void *buffer)
static Dart_Handle Allocate(intptr_t size, uint8_t **buffer)
struct _Dart_Handle * Dart_Handle
DART_EXPORT Dart_Handle Dart_NewExternalTypedDataWithFinalizer(Dart_TypedData_Type type, void *data, intptr_t length, void *peer, intptr_t external_allocation_size, Dart_HandleFinalizer callback)
DART_EXPORT void Dart_PropagateError(Dart_Handle handle)
DART_EXPORT bool Dart_IsError(Dart_Handle handle)
DART_EXPORT Dart_Handle Dart_Null()
static int8_t data[kExtLength]
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
◆ Finalizer()
static void dart::bin::IOBuffer::Finalizer |
( |
void * |
isolate_callback_data, |
|
|
void * |
buffer |
|
) |
| |
|
inlinestatic |
◆ Free()
static void dart::bin::IOBuffer::Free |
( |
void * |
buffer | ) |
|
|
inlinestatic |
◆ Reallocate()
uint8_t * dart::bin::IOBuffer::Reallocate |
( |
uint8_t * |
buffer, |
|
|
intptr_t |
new_size |
|
) |
| |
|
static |
Definition at line 34 of file io_buffer.cc.
34 {
35
36
37
38
39
41 if (new_buffer != nullptr) {
42 memmove(new_buffer,
buffer, new_size);
44 return static_cast<uint8_t*>(new_buffer);
45 }
47}
void * realloc(void *ptr, size_t size)
The documentation for this class was generated from the following files: