1 /*
2  * Copyright 2014 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 // EXPERIMENTAL EXPERIMENTAL EXPERIMENTAL EXPERIMENTAL
9 // DO NOT USE -- FOR INTERNAL TESTING ONLY
10 
11 #ifndef sk_data_DEFINED
12 #define sk_data_DEFINED
13 
14 #include "sk_types.h"
15 
16 SK_C_PLUS_PLUS_BEGIN_GUARD
17 
18 sk_data_t* sk_data_new_empty();
19 sk_data_t* sk_data_new_with_copy(const void* src, size_t length);
20 sk_data_t* sk_data_new_from_malloc(const void* memory, size_t length);
21 sk_data_t* sk_data_new_subset(const sk_data_t* src, size_t offset, size_t length);
22 
23 void sk_data_ref(const sk_data_t*);
24 void sk_data_unref(const sk_data_t*);
25 
26 size_t sk_data_get_size(const sk_data_t*);
27 const void* sk_data_get_data(const sk_data_t*);
28 
29 SK_C_PLUS_PLUS_END_GUARD
30 
31 #endif
32