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

#include <text_buffer.h>

Inheritance diagram for dart::BufferFormatter:
dart::BaseTextBuffer dart::ValueObject

Public Member Functions

 BufferFormatter (char *buffer, intptr_t size)
 
void Clear ()
 
- Public Member Functions inherited from dart::BaseTextBuffer
 BaseTextBuffer ()
 
 BaseTextBuffer (char *buffer, intptr_t capacity)
 
virtual ~BaseTextBuffer ()
 
intptr_t Printf (const char *format,...) PRINTF_ATTRIBUTE(2
 
intptr_t intptr_t VPrintf (const char *format, va_list args)
 
void AddChar (char ch)
 
void AddString (const char *s)
 
void AddRaw (const uint8_t *buffer, intptr_t buffer_length)
 
void AddEscapedString (const char *s)
 
void AddEscapedUTF8 (const char *s, intptr_t len)
 
void AddEscapedLatin1 (const uint8_t *code_units, intptr_t len)
 
void AddEscapedUTF16 (const uint16_t *code_units, intptr_t len)
 
char * buffer () const
 
intptr_t length () const
 
virtual void Clear ()=0
 
- Public Member Functions inherited from dart::ValueObject
 ValueObject ()
 
 ~ValueObject ()
 

Additional Inherited Members

- Protected Member Functions inherited from dart::BaseTextBuffer
virtual bool EnsureCapacity (intptr_t len)=0
 
 DISALLOW_COPY_AND_ASSIGN (BaseTextBuffer)
 
- Protected Attributes inherited from dart::BaseTextBuffer
char * buffer_
 
intptr_t capacity_
 
intptr_t length_
 

Detailed Description

Definition at line 85 of file text_buffer.h.

Constructor & Destructor Documentation

◆ BufferFormatter()

dart::BufferFormatter::BufferFormatter ( char *  buffer,
intptr_t  size 
)
inline

Definition at line 87 of file text_buffer.h.

88 buffer_[length_] = '\0';
89 }
char * buffer() const
Definition: text_buffer.h:35
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

Member Function Documentation

◆ Clear()

void dart::BufferFormatter::Clear ( )
inlinevirtual

Implements dart::BaseTextBuffer.

Definition at line 91 of file text_buffer.h.

91 {
92 length_ = 0;
93 buffer_[length_] = '\0';
94 }

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