Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
SkDynamicMemoryWStream::Block Struct Reference

Public Member Functions

const char * start () const
 
char * start ()
 
size_t avail () const
 
size_t written () const
 
void init (size_t size)
 
const void * append (const void *data, size_t size)
 

Public Attributes

BlockfNext
 
char * fCurr
 
char * fStop
 

Detailed Description

Definition at line 469 of file SkStream.cpp.

Member Function Documentation

◆ append()

const void * SkDynamicMemoryWStream::Block::append ( const void *  data,
size_t  size 
)
inline

Definition at line 485 of file SkStream.cpp.

485 {
486 SkASSERT((size_t)(fStop - fCurr) >= size);
488 fCurr += size;
489 return (const void*)((const char*)data + size);
490 }
#define SkASSERT(cond)
Definition: SkAssert.h:116
static void sk_memcpy_4bytes(void *dst, const void *src, size_t size)
Definition: SkStream.cpp:459
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
std::shared_ptr< const fml::Mapping > data
Definition: texture_gles.cc:63

◆ avail()

size_t SkDynamicMemoryWStream::Block::avail ( ) const
inline

Definition at line 476 of file SkStream.cpp.

476{ return fStop - fCurr; }

◆ init()

void SkDynamicMemoryWStream::Block::init ( size_t  size)
inline

Definition at line 479 of file SkStream.cpp.

479 {
480 fNext = nullptr;
481 fCurr = this->start();
482 fStop = this->start() + size;
483 }
const char * start() const
Definition: SkStream.cpp:474

◆ start() [1/2]

char * SkDynamicMemoryWStream::Block::start ( )
inline

Definition at line 475 of file SkStream.cpp.

475{ return (char*)(this + 1); }

◆ start() [2/2]

const char * SkDynamicMemoryWStream::Block::start ( ) const
inline

Definition at line 474 of file SkStream.cpp.

474{ return (const char*)(this + 1); }

◆ written()

size_t SkDynamicMemoryWStream::Block::written ( ) const
inline

Definition at line 477 of file SkStream.cpp.

477{ return fCurr - this->start(); }

Member Data Documentation

◆ fCurr

char* SkDynamicMemoryWStream::Block::fCurr

Definition at line 471 of file SkStream.cpp.

◆ fNext

Block* SkDynamicMemoryWStream::Block::fNext

Definition at line 470 of file SkStream.cpp.

◆ fStop

char* SkDynamicMemoryWStream::Block::fStop

Definition at line 472 of file SkStream.cpp.


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