Skia
2DGraphicsLibrary
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SkFlattenableSerialization.h
1 /*
2  * Copyright 2013 Google Inc.
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 
8 #ifndef SkFlattenableSerialization_DEFINED
9 #define SkFlattenableSerialization_DEFINED
10 
11 #include "SkFlattenable.h"
12 
13 class SkData;
14 
15 SK_API SkData* SkValidatingSerializeFlattenable(SkFlattenable*);
16 SK_API SkFlattenable* SkValidatingDeserializeFlattenable(const void* data, size_t size,
17  SkFlattenable::Type type);
18 
19 #endif
size_t size() const
Returns the number of bytes stored.
Definition: SkData.h:27
SkData holds an immutable data buffer.
Definition: SkData.h:22
SkFlattenable is the base class for objects that need to be flattened into a data stream for either t...
Definition: SkFlattenable.h:70
const void * data() const
Returns the ptr to the data.
Definition: SkData.h:34