Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::MaybeOnStackBuffer Class Reference

Public Member Functions

 MaybeOnStackBuffer (intptr_t size)
 
 ~MaybeOnStackBuffer ()
 
char * p ()
 

Detailed Description

Definition at line 14 of file json_writer.cc.

Constructor & Destructor Documentation

◆ MaybeOnStackBuffer()

dart::MaybeOnStackBuffer::MaybeOnStackBuffer ( intptr_t  size)
inlineexplicit

Definition at line 16 of file json_writer.cc.

16 {
17 if (size > kOnStackBufferCapacity) {
18 p_ = reinterpret_cast<char*>(malloc(size));
19 } else {
20 p_ = &buffer_[0];
21 }
22 }
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

◆ ~MaybeOnStackBuffer()

dart::MaybeOnStackBuffer::~MaybeOnStackBuffer ( )
inline

Definition at line 23 of file json_writer.cc.

23 {
24 if (p_ != &buffer_[0]) free(p_);
25 }

Member Function Documentation

◆ p()

char * dart::MaybeOnStackBuffer::p ( )
inline

Definition at line 27 of file json_writer.cc.

27{ return p_; }

The documentation for this class was generated from the following file: