Flutter Engine
The Flutter Engine
Static Public Member Functions | List of all members
SerializationUtils< SkColor > Struct Reference

Static Public Member Functions

static void Write (SkWriteBuffer &writer, SkColor *data, uint32_t arraySize)
 
static bool Read (SkReadBuffer &reader, SkColor *data, uint32_t arraySize)
 

Detailed Description

Definition at line 144 of file SerializationTest.cpp.

Member Function Documentation

◆ Read()

static bool SerializationUtils< SkColor >::Read ( SkReadBuffer reader,
SkColor data,
uint32_t  arraySize 
)
inlinestatic

Definition at line 148 of file SerializationTest.cpp.

148 {
149 return reader.readColorArray(data, arraySize);
150 }
bool readColorArray(SkColor *colors, size_t size)
std::shared_ptr< const fml::Mapping > data
Definition: texture_gles.cc:63

◆ Write()

static void SerializationUtils< SkColor >::Write ( SkWriteBuffer writer,
SkColor data,
uint32_t  arraySize 
)
inlinestatic

Definition at line 145 of file SerializationTest.cpp.

145 {
146 writer.writeColorArray(data, arraySize);
147 }
virtual void writeColorArray(const SkColor *color, uint32_t count)=0

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