Flutter Engine
The Flutter Engine
Public Member Functions | Protected Attributes | List of all members
SkWriteBuffer Class Referenceabstract

#include <SkWriteBuffer.h>

Inheritance diagram for SkWriteBuffer:
JsonWriteBuffer SkBinaryWriteBuffer

Public Member Functions

 SkWriteBuffer (const SkSerialProcs &p)
 
virtual ~SkWriteBuffer ()
 
virtual void writePad32 (const void *buffer, size_t bytes)=0
 
virtual void writeByteArray (const void *data, size_t size)=0
 
void writeDataAsByteArray (const SkData *data)
 
virtual void writeBool (bool value)=0
 
virtual void writeScalar (SkScalar value)=0
 
virtual void writeScalarArray (const SkScalar *value, uint32_t count)=0
 
virtual void writeInt (int32_t value)=0
 
virtual void writeIntArray (const int32_t *value, uint32_t count)=0
 
virtual void writeUInt (uint32_t value)=0
 
void write32 (int32_t value)
 
virtual void writeString (std::string_view value)=0
 
virtual void writeFlattenable (const SkFlattenable *flattenable)=0
 
virtual void writeColor (SkColor color)=0
 
virtual void writeColorArray (const SkColor *color, uint32_t count)=0
 
virtual void writeColor4f (const SkColor4f &color)=0
 
virtual void writeColor4fArray (const SkColor4f *color, uint32_t count)=0
 
virtual void writePoint (const SkPoint &point)=0
 
virtual void writePointArray (const SkPoint *point, uint32_t count)=0
 
virtual void writePoint3 (const SkPoint3 &point)=0
 
virtual void write (const SkM44 &)=0
 
virtual void writeMatrix (const SkMatrix &matrix)=0
 
virtual void writeIRect (const SkIRect &rect)=0
 
virtual void writeRect (const SkRect &rect)=0
 
virtual void writeRegion (const SkRegion &region)=0
 
virtual void writeSampling (const SkSamplingOptions &)=0
 
virtual void writePath (const SkPath &path)=0
 
virtual size_t writeStream (SkStream *stream, size_t length)=0
 
virtual void writeImage (const SkImage *)=0
 
virtual void writeTypeface (SkTypeface *typeface)=0
 
virtual void writePaint (const SkPaint &paint)=0
 
const SkSerialProcsserialProcs () const
 

Protected Attributes

SkSerialProcs fProcs
 

Detailed Description

Definition at line 41 of file SkWriteBuffer.h.

Constructor & Destructor Documentation

◆ SkWriteBuffer()

SkWriteBuffer::SkWriteBuffer ( const SkSerialProcs p)
inline

Definition at line 43 of file SkWriteBuffer.h.

◆ ~SkWriteBuffer()

virtual SkWriteBuffer::~SkWriteBuffer ( )
inlinevirtual

Definition at line 44 of file SkWriteBuffer.h.

44{}

Member Function Documentation

◆ serialProcs()

const SkSerialProcs & SkWriteBuffer::serialProcs ( ) const
inline

Definition at line 88 of file SkWriteBuffer.h.

88{ return fProcs; }

◆ write()

virtual void SkWriteBuffer::write ( const SkM44 )
pure virtual

Implemented in SkBinaryWriteBuffer, and JsonWriteBuffer.

◆ write32()

void SkWriteBuffer::write32 ( int32_t  value)
inline

Definition at line 63 of file SkWriteBuffer.h.

63 {
64 this->writeInt(value);
65 }
virtual void writeInt(int32_t value)=0
uint8_t value

◆ writeBool()

virtual void SkWriteBuffer::writeBool ( bool  value)
pure virtual

Implemented in SkBinaryWriteBuffer, and JsonWriteBuffer.

◆ writeByteArray()

virtual void SkWriteBuffer::writeByteArray ( const void *  data,
size_t  size 
)
pure virtual

Implemented in SkBinaryWriteBuffer, and JsonWriteBuffer.

◆ writeColor()

virtual void SkWriteBuffer::writeColor ( SkColor  color)
pure virtual

Implemented in SkBinaryWriteBuffer, and JsonWriteBuffer.

◆ writeColor4f()

virtual void SkWriteBuffer::writeColor4f ( const SkColor4f color)
pure virtual

Implemented in SkBinaryWriteBuffer, and JsonWriteBuffer.

◆ writeColor4fArray()

virtual void SkWriteBuffer::writeColor4fArray ( const SkColor4f color,
uint32_t  count 
)
pure virtual

Implemented in SkBinaryWriteBuffer, and JsonWriteBuffer.

◆ writeColorArray()

virtual void SkWriteBuffer::writeColorArray ( const SkColor color,
uint32_t  count 
)
pure virtual

Implemented in SkBinaryWriteBuffer, and JsonWriteBuffer.

◆ writeDataAsByteArray()

void SkWriteBuffer::writeDataAsByteArray ( const SkData data)
inline

Definition at line 49 of file SkWriteBuffer.h.

49 {
50 if (!data) {
51 this->write32(0);
52 } else {
53 this->writeByteArray(data->data(), data->size());
54 }
55 }
const void * data() const
Definition: SkData.h:37
virtual void writeByteArray(const void *data, size_t size)=0
void write32(int32_t value)
Definition: SkWriteBuffer.h:63
std::shared_ptr< const fml::Mapping > data
Definition: texture_gles.cc:63

◆ writeFlattenable()

virtual void SkWriteBuffer::writeFlattenable ( const SkFlattenable flattenable)
pure virtual

Implemented in SkBinaryWriteBuffer, and JsonWriteBuffer.

◆ writeImage()

virtual void SkWriteBuffer::writeImage ( const SkImage )
pure virtual

Implemented in SkBinaryWriteBuffer, and JsonWriteBuffer.

◆ writeInt()

virtual void SkWriteBuffer::writeInt ( int32_t  value)
pure virtual

Implemented in SkBinaryWriteBuffer, and JsonWriteBuffer.

◆ writeIntArray()

virtual void SkWriteBuffer::writeIntArray ( const int32_t *  value,
uint32_t  count 
)
pure virtual

Implemented in SkBinaryWriteBuffer, and JsonWriteBuffer.

◆ writeIRect()

virtual void SkWriteBuffer::writeIRect ( const SkIRect rect)
pure virtual

Implemented in SkBinaryWriteBuffer, and JsonWriteBuffer.

◆ writeMatrix()

virtual void SkWriteBuffer::writeMatrix ( const SkMatrix matrix)
pure virtual

Implemented in SkBinaryWriteBuffer, and JsonWriteBuffer.

◆ writePad32()

virtual void SkWriteBuffer::writePad32 ( const void *  buffer,
size_t  bytes 
)
pure virtual

Implemented in SkBinaryWriteBuffer, and JsonWriteBuffer.

◆ writePaint()

virtual void SkWriteBuffer::writePaint ( const SkPaint paint)
pure virtual

Implemented in SkBinaryWriteBuffer, and JsonWriteBuffer.

◆ writePath()

virtual void SkWriteBuffer::writePath ( const SkPath path)
pure virtual

Implemented in SkBinaryWriteBuffer, and JsonWriteBuffer.

◆ writePoint()

virtual void SkWriteBuffer::writePoint ( const SkPoint point)
pure virtual

Implemented in SkBinaryWriteBuffer, and JsonWriteBuffer.

◆ writePoint3()

virtual void SkWriteBuffer::writePoint3 ( const SkPoint3 point)
pure virtual

Implemented in SkBinaryWriteBuffer, and JsonWriteBuffer.

◆ writePointArray()

virtual void SkWriteBuffer::writePointArray ( const SkPoint point,
uint32_t  count 
)
pure virtual

Implemented in SkBinaryWriteBuffer, and JsonWriteBuffer.

◆ writeRect()

virtual void SkWriteBuffer::writeRect ( const SkRect rect)
pure virtual

Implemented in SkBinaryWriteBuffer, and JsonWriteBuffer.

◆ writeRegion()

virtual void SkWriteBuffer::writeRegion ( const SkRegion region)
pure virtual

Implemented in SkBinaryWriteBuffer, and JsonWriteBuffer.

◆ writeSampling()

virtual void SkWriteBuffer::writeSampling ( const SkSamplingOptions )
pure virtual

Implemented in SkBinaryWriteBuffer, and JsonWriteBuffer.

◆ writeScalar()

virtual void SkWriteBuffer::writeScalar ( SkScalar  value)
pure virtual

Implemented in SkBinaryWriteBuffer, and JsonWriteBuffer.

◆ writeScalarArray()

virtual void SkWriteBuffer::writeScalarArray ( const SkScalar value,
uint32_t  count 
)
pure virtual

Implemented in SkBinaryWriteBuffer, and JsonWriteBuffer.

◆ writeStream()

virtual size_t SkWriteBuffer::writeStream ( SkStream stream,
size_t  length 
)
pure virtual

Implemented in SkBinaryWriteBuffer, and JsonWriteBuffer.

◆ writeString()

virtual void SkWriteBuffer::writeString ( std::string_view  value)
pure virtual

Implemented in SkBinaryWriteBuffer, and JsonWriteBuffer.

◆ writeTypeface()

virtual void SkWriteBuffer::writeTypeface ( SkTypeface typeface)
pure virtual

Implemented in SkBinaryWriteBuffer, and JsonWriteBuffer.

◆ writeUInt()

virtual void SkWriteBuffer::writeUInt ( uint32_t  value)
pure virtual

Implemented in SkBinaryWriteBuffer, and JsonWriteBuffer.

Member Data Documentation

◆ fProcs

SkSerialProcs SkWriteBuffer::fProcs
protected

Definition at line 91 of file SkWriteBuffer.h.


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