Home | History | Annotate | Download | only in c

Lines Matching refs:sk_data_t

19     Returns a new empty sk_data_t.  This call must be balanced with a call to
22 SK_API sk_data_t* sk_data_new_empty(void);
24 Returns a new sk_data_t by copying the specified source data.
27 SK_API sk_data_t* sk_data_new_with_copy(const void* src, size_t length);
29 Pass ownership of the given memory to a new sk_data_t, which will
35 sk_data_t* data = sk_data_new_from_malloc(buffer, length);
38 SK_API sk_data_t* sk_data_new_from_malloc(const void* memory, size_t length);
40 Returns a new sk_data_t using a subset of the data in the
41 specified source sk_data_t. This call must be balanced with a
44 SK_API sk_data_t* sk_data_new_subset(const sk_data_t* src, size_t offset, size_t length);
47 Increment the reference count on the given sk_data_t. Must be
50 SK_API void sk_data_ref(const sk_data_t*);
53 the decrement, then release both the memory holding the sk_data_t
54 and the memory it is managing. New sk_data_t are created with a
57 SK_API void sk_data_unref(const sk_data_t*);
62 SK_API size_t sk_data_get_size(const sk_data_t*);
66 SK_API const void* sk_data_get_data(const sk_data_t*);