Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
SkSWriter32< SIZE > Class Template Reference

#include <SkWriter32.h>

Inheritance diagram for SkSWriter32< SIZE >:
SkWriter32 SkNoncopyable

Public Member Functions

 SkSWriter32 ()
 
void reset ()
 
- Public Member Functions inherited from SkWriter32
 SkWriter32 (void *external=nullptr, size_t externalBytes=0)
 
size_t bytesWritten () const
 
bool usingInitialStorage () const
 
void reset (void *external=nullptr, size_t externalBytes=0)
 
uint32_t * reserve (size_t size)
 
template<typename T >
const TreadTAt (size_t offset) const
 
template<typename T >
void overwriteTAt (size_t offset, const T &value)
 
bool writeBool (bool value)
 
void writeInt (int32_t value)
 
void write8 (int32_t value)
 
void write16 (int32_t value)
 
void write32 (int32_t value)
 
void writeScalar (SkScalar value)
 
void writePoint (const SkPoint &pt)
 
void writePoint3 (const SkPoint3 &pt)
 
void writeRect (const SkRect &rect)
 
void writeIRect (const SkIRect &rect)
 
void writeRRect (const SkRRect &rrect)
 
void writePath (const SkPath &path)
 
void writeMatrix (const SkMatrix &matrix)
 
void writeRegion (const SkRegion &rgn)
 
void writeSampling (const SkSamplingOptions &sampling)
 
void writeMul4 (const void *values, size_t size)
 
void write (const void *values, size_t size)
 
uint32_t * reservePad (size_t size)
 
void writePad (const void *src, size_t size)
 
void writeString (const char *str, size_t len=(size_t) -1)
 
void writeData (const SkData *data)
 
void rewindToOffset (size_t offset)
 
void flatten (void *dst) const
 
bool writeToStream (SkWStream *stream) const
 
size_t readFromStream (SkStream *stream, size_t length)
 
sk_sp< SkDatasnapshotAsData () const
 

Additional Inherited Members

- Static Public Member Functions inherited from SkWriter32
static size_t WriteStringSize (const char *str, size_t len=(size_t) -1)
 
static size_t WriteDataSize (const SkData *data)
 

Detailed Description

template<size_t SIZE>
class SkSWriter32< SIZE >

Helper class to allocated SIZE bytes as part of the writer, and to provide that storage to the constructor as its initial storage buffer.

This wrapper ensures proper alignment rules are met for the storage.

Definition at line 269 of file SkWriter32.h.

Constructor & Destructor Documentation

◆ SkSWriter32()

template<size_t SIZE>
SkSWriter32< SIZE >::SkSWriter32 ( )
inline

Definition at line 271 of file SkWriter32.h.

271{ this->reset(); }
void reset()
Definition: SkWriter32.h:273

Member Function Documentation

◆ reset()

template<size_t SIZE>
void SkSWriter32< SIZE >::reset ( )
inline

Definition at line 273 of file SkWriter32.h.

273{this->INHERITED::reset(fData.fStorage, SIZE); }
void reset(void *external=nullptr, size_t externalBytes=0)
Definition: SkWriter32.h:54
#define SIZE

Member Data Documentation

◆ fDoubleAlignment

template<size_t SIZE>
double SkSWriter32< SIZE >::fDoubleAlignment

Definition at line 278 of file SkWriter32.h.

◆ fPtrAlignment

template<size_t SIZE>
void* SkSWriter32< SIZE >::fPtrAlignment

Definition at line 277 of file SkWriter32.h.

◆ fStorage

template<size_t SIZE>
char SkSWriter32< SIZE >::fStorage[SIZE]

Definition at line 279 of file SkWriter32.h.


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