OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 // EXPERIMENTAL EXPERIMENTAL EXPERIMENTAL EXPERIMENTAL | 8 // EXPERIMENTAL EXPERIMENTAL EXPERIMENTAL EXPERIMENTAL |
9 // DO NOT USE -- FOR INTERNAL TESTING ONLY | 9 // DO NOT USE -- FOR INTERNAL TESTING ONLY |
10 | 10 |
11 #ifndef sk_data_DEFINED | 11 #ifndef sk_data_DEFINED |
12 #define sk_data_DEFINED | 12 #define sk_data_DEFINED |
13 | 13 |
14 #include "sk_types.h" | 14 #include "sk_types.h" |
15 | 15 |
16 SK_C_PLUS_PLUS_BEGIN_GUARD | 16 SK_C_PLUS_PLUS_BEGIN_GUARD |
17 | 17 |
18 sk_data_t* sk_data_new_empty(); | 18 SK_API sk_data_t* sk_data_new_empty(); |
19 sk_data_t* sk_data_new_with_copy(const void* src, size_t length); | 19 SK_API 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); | 20 SK_API 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
); | 21 SK_API sk_data_t* sk_data_new_subset(const sk_data_t* src, size_t offset, size_t
length); |
22 | 22 |
23 void sk_data_ref(const sk_data_t*); | 23 SK_API void sk_data_ref(const sk_data_t*); |
24 void sk_data_unref(const sk_data_t*); | 24 SK_API void sk_data_unref(const sk_data_t*); |
25 | 25 |
26 size_t sk_data_get_size(const sk_data_t*); | 26 SK_API size_t sk_data_get_size(const sk_data_t*); |
27 const void* sk_data_get_data(const sk_data_t*); | 27 SK_API const void* sk_data_get_data(const sk_data_t*); |
28 | 28 |
29 SK_C_PLUS_PLUS_END_GUARD | 29 SK_C_PLUS_PLUS_END_GUARD |
30 | 30 |
31 #endif | 31 #endif |
OLD | NEW |