Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions
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 {
15 arr->length = size;
16 arr->data = static_cast<uint8_t*>(malloc(size * sizeof(uint8_t)));
17 return arr;
18}
void * malloc(size_t size)
Definition allocation.cc:19
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
Definition switches.h:259

◆ 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:85

◆ 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}
uint8_t value