Flutter Engine
 
Loading...
Searching...
No Matches
basic_types.cc File Reference
#include "basic_types.h"
#include <cstdint>
#include <cstdlib>
#include "flutter/fml/logging.h"

Go to the source code of this file.

Functions

zircon_dart_byte_array_tzircon_dart_byte_array_create (uint32_t size)
 
void zircon_dart_byte_array_set_value (zircon_dart_byte_array_t *arr, uint32_t index, uint8_t value)
 
void zircon_dart_byte_array_free (zircon_dart_byte_array_t *arr)
 

Function Documentation

◆ zircon_dart_byte_array_create()

zircon_dart_byte_array_t * zircon_dart_byte_array_create ( uint32_t  size)

Definition at line 12 of file basic_types.cc.

12 {
14 malloc(sizeof(zircon_dart_byte_array_t)));
15 arr->length = size;
16 arr->data = static_cast<uint8_t*>(malloc(size * sizeof(uint8_t)));
17 return arr;
18}
it will be possible to load the file into Perfetto s trace viewer use test Running tests that layout and measure text will not yield consistent results across various platforms Enabling this option will make font resolution default to the Ahem test font on all 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

References zircon_dart_byte_array_t::data, and zircon_dart_byte_array_t::length.

◆ zircon_dart_byte_array_free()

void zircon_dart_byte_array_free ( zircon_dart_byte_array_t arr)

Definition at line 28 of file basic_types.cc.

28 {
29 FML_CHECK(arr);
30 free(arr->data);
31 free(arr);
32}
#define FML_CHECK(condition)
Definition logging.h:104

References zircon_dart_byte_array_t::data, and FML_CHECK.

◆ zircon_dart_byte_array_set_value()

void zircon_dart_byte_array_set_value ( zircon_dart_byte_array_t arr,
uint32_t  index,
uint8_t  value 
)

Definition at line 20 of file basic_types.cc.

22 {
23 FML_CHECK(arr);
24 FML_CHECK(arr->length > index);
25 arr->data[index] = value;
26}
int32_t value

References zircon_dart_byte_array_t::data, FML_CHECK, zircon_dart_byte_array_t::length, and value.