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

Static Public Member Functions

static void Write (SkWriteBuffer &writer, const T *flattenable)
 
static void Read (SkReadBuffer &reader, T **flattenable)
 

Detailed Description

template<typename T>
struct SerializationUtils< T >

Definition at line 89 of file SerializationTest.cpp.

Member Function Documentation

◆ Read()

template<typename T >
static void SerializationUtils< T >::Read ( SkReadBuffer reader,
T **  flattenable 
)
inlinestatic

Definition at line 94 of file SerializationTest.cpp.

94 {
95 *flattenable = (T*)reader.readFlattenable(T::GetFlattenableType());
96 }
SkFlattenable * readFlattenable(SkFlattenable::Type)
#define T
Definition: precompiler.cc:65

◆ Write()

template<typename T >
static void SerializationUtils< T >::Write ( SkWriteBuffer writer,
const T flattenable 
)
inlinestatic

Definition at line 91 of file SerializationTest.cpp.

91 {
92 writer.writeFlattenable(flattenable);
93 }
virtual void writeFlattenable(const SkFlattenable *flattenable)=0

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