Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
SkSL::StringStream Class Reference

#include <SkSLStringStream.h>

Inheritance diagram for SkSL::StringStream:
SkSL::OutputStream

Public Member Functions

void write8 (uint8_t b) override
 
void writeText (const char *s) override
 
void write (const void *s, size_t size) override
 
size_t bytesWritten () const
 
const std::string & str () const
 
void reset ()
 
- Public Member Functions inherited from SkSL::OutputStream
virtual bool isValid () const
 
virtual void write8 (uint8_t b)=0
 
void write16 (uint16_t i)
 
void write32 (uint32_t i)
 
virtual void writeText (const char *s)=0
 
virtual void write (const void *s, size_t size)=0
 
void writeString (const std::string &s)
 
void printf (const char format[],...) SK_PRINTF_LIKE(2
 
void void appendVAList (const char format[], va_list args) SK_PRINTF_LIKE(2
 
void void virtual ~OutputStream ()
 

Detailed Description

Definition at line 17 of file SkSLStringStream.h.

Member Function Documentation

◆ bytesWritten()

size_t SkSL::StringStream::bytesWritten ( ) const
inline

Definition at line 34 of file SkSLStringStream.h.

34 {
35 return fStream.bytesWritten();
36 }
size_t bytesWritten() const override
Definition: SkStream.cpp:526

◆ reset()

void SkSL::StringStream::reset ( )
inline

Definition at line 46 of file SkSLStringStream.h.

46 {
47 fStream.reset();
48 fString = "";
49 }

◆ str()

const std::string & SkSL::StringStream::str ( ) const
inline

Definition at line 38 of file SkSLStringStream.h.

38 {
39 if (!fString.size()) {
41 fString = std::string((const char*) data->data(), data->size());
42 }
43 return fString;
44 }
sk_sp< SkData > detachAsData()
Definition: SkStream.cpp:707
std::shared_ptr< const fml::Mapping > data
Definition: texture_gles.cc:63

◆ write()

void SkSL::StringStream::write ( const void *  s,
size_t  size 
)
inlineoverridevirtual

Implements SkSL::OutputStream.

Definition at line 29 of file SkSLStringStream.h.

29 {
30 SkASSERT(fString.empty());
31 fStream.write(s, size);
32 }
#define SkASSERT(cond)
Definition: SkAssert.h:116
bool write(const void *buffer, size_t size) override
Definition: SkStream.cpp:535
struct MyStruct s
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

◆ write8()

void SkSL::StringStream::write8 ( uint8_t  b)
inlineoverridevirtual

Implements SkSL::OutputStream.

Definition at line 19 of file SkSLStringStream.h.

19 {
20 SkASSERT(fString.empty());
21 fStream.write8(b);
22 }
bool write8(U8CPU value)
Definition: SkStream.h:235
static bool b

◆ writeText()

void SkSL::StringStream::writeText ( const char *  s)
inlineoverridevirtual

Implements SkSL::OutputStream.

Definition at line 24 of file SkSLStringStream.h.

24 {
25 SkASSERT(fString.empty());
26 fStream.writeText(s);
27 }
bool writeText(const char text[])
Definition: SkStream.h:247

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