#include <process.h>
Definition at line 226 of file process.h.
◆ BufferListBase()
dart::bin::BufferListBase::BufferListBase |
( |
| ) |
|
|
inline |
Definition at line 254 of file process.h.
255 : head_(nullptr), tail_(nullptr), data_size_(0), free_size_(0) {}
◆ ~BufferListBase()
dart::bin::BufferListBase::~BufferListBase |
( |
| ) |
|
|
inline |
Definition at line 256 of file process.h.
256 {
259 }
#define DEBUG_ASSERT(cond)
◆ Allocate()
bool dart::bin::BufferListBase::Allocate |
( |
| ) |
|
|
inlineprotected |
Definition at line 291 of file process.h.
291 {
293 BufferListNode* node =
new BufferListNode(
kBufferSize);
294 if ((node == nullptr) || !node->Valid()) {
295
296 delete node;
297 return false;
298 }
299 if (head_ == nullptr) {
300 head_ = node;
301 tail_ = node;
302 } else {
305 tail_ = node;
306 }
308 return true;
309 }
void set_next(BufferListNode *n)
BufferListNode * next() const
static constexpr intptr_t kBufferSize
◆ data_size()
intptr_t dart::bin::BufferListBase::data_size |
( |
| ) |
const |
|
inlineprotected |
Definition at line 329 of file process.h.
329{ return data_size_; }
◆ Free()
void dart::bin::BufferListBase::Free |
( |
| ) |
|
|
inlineprotected |
Definition at line 311 of file process.h.
311 {
312 BufferListNode* current = head_;
313 while (current != nullptr) {
314 BufferListNode* tmp = current;
315 current = current->
next();
316 delete tmp;
317 }
318 head_ = nullptr;
319 tail_ = nullptr;
320 data_size_ = 0;
321 free_size_ = 0;
322 }
◆ free_size()
intptr_t dart::bin::BufferListBase::free_size |
( |
| ) |
const |
|
inlineprotected |
Definition at line 332 of file process.h.
332{ return free_size_; }
◆ FreeSpaceAddress()
uint8_t * dart::bin::BufferListBase::FreeSpaceAddress |
( |
| ) |
|
|
inlineprotected |
◆ GetData()
Definition at line 263 of file process.h.
263 {
265 intptr_t buffer_position = 0;
269 }
273 }
274 for (BufferListNode* current = head_; current != nullptr;
275 current = current->next()) {
277 memmove(
buffer + buffer_position, current->data(), to_copy);
280 }
284 }
static T Minimum(T x, T y)
static Dart_Handle NewDartOSError()
static Dart_Handle Allocate(intptr_t size, uint8_t **buffer)
struct _Dart_Handle * Dart_Handle
static const uint8_t buffer[]
DART_EXPORT bool Dart_IsError(Dart_Handle handle)
DART_EXPORT bool Dart_IsNull(Dart_Handle object)
◆ head()
◆ set_data_size()
void dart::bin::BufferListBase::set_data_size |
( |
intptr_t |
size | ) |
|
|
inlineprotected |
Definition at line 330 of file process.h.
330{ data_size_ =
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
◆ set_free_size()
void dart::bin::BufferListBase::set_free_size |
( |
intptr_t |
size | ) |
|
|
inlineprotected |
◆ tail()
◆ kBufferSize
constexpr intptr_t dart::bin::BufferListBase::kBufferSize = 16 * 1024 |
|
staticconstexprprotected |
The documentation for this class was generated from the following file:
- third_party/dart-lang/sdk/runtime/bin/process.h