• Home
  • Raw
  • Download

Lines Matching refs:blob

79   hb_blob_t *blob;  in hb_blob_create()  local
83 !(blob = hb_object_create<hb_blob_t> ())) { in hb_blob_create()
89 blob->data = data; in hb_blob_create()
90 blob->length = length; in hb_blob_create()
91 blob->mode = mode; in hb_blob_create()
93 blob->user_data = user_data; in hb_blob_create()
94 blob->destroy = destroy; in hb_blob_create()
96 if (blob->mode == HB_MEMORY_MODE_DUPLICATE) { in hb_blob_create()
97 blob->mode = HB_MEMORY_MODE_READONLY; in hb_blob_create()
98 if (!blob->try_make_writable ()) { in hb_blob_create()
99 hb_blob_destroy (blob); in hb_blob_create()
104 return blob; in hb_blob_create()
138 hb_blob_t *blob; in hb_blob_create_sub_blob() local
145 blob = hb_blob_create (parent->data + offset, in hb_blob_create_sub_blob()
151 return blob; in hb_blob_create_sub_blob()
165 hb_blob_copy_writable_or_fail (hb_blob_t *blob) in hb_blob_copy_writable_or_fail() argument
167 blob = hb_blob_create (blob->data, in hb_blob_copy_writable_or_fail()
168 blob->length, in hb_blob_copy_writable_or_fail()
173 if (unlikely (blob == hb_blob_get_empty ())) in hb_blob_copy_writable_or_fail()
174 blob = nullptr; in hb_blob_copy_writable_or_fail()
176 return blob; in hb_blob_copy_writable_or_fail()
209 hb_blob_reference (hb_blob_t *blob) in hb_blob_reference() argument
211 return hb_object_reference (blob); in hb_blob_reference()
227 hb_blob_destroy (hb_blob_t *blob) in hb_blob_destroy() argument
229 if (!hb_object_destroy (blob)) return; in hb_blob_destroy()
231 blob->fini_shallow (); in hb_blob_destroy()
233 free (blob); in hb_blob_destroy()
249 hb_blob_set_user_data (hb_blob_t *blob, in hb_blob_set_user_data() argument
255 return hb_object_set_user_data (blob, key, data, destroy, replace); in hb_blob_set_user_data()
270 hb_blob_get_user_data (hb_blob_t *blob, in hb_blob_get_user_data() argument
273 return hb_object_get_user_data (blob, key); in hb_blob_get_user_data()
286 hb_blob_make_immutable (hb_blob_t *blob) in hb_blob_make_immutable() argument
288 if (hb_object_is_immutable (blob)) in hb_blob_make_immutable()
291 hb_object_make_immutable (blob); in hb_blob_make_immutable()
305 hb_blob_is_immutable (hb_blob_t *blob) in hb_blob_is_immutable() argument
307 return hb_object_is_immutable (blob); in hb_blob_is_immutable()
322 hb_blob_get_length (hb_blob_t *blob) in hb_blob_get_length() argument
324 return blob->length; in hb_blob_get_length()
339 hb_blob_get_data (hb_blob_t *blob, unsigned int *length) in hb_blob_get_data() argument
342 *length = blob->length; in hb_blob_get_data()
344 return blob->data; in hb_blob_get_data()
364 hb_blob_get_data_writable (hb_blob_t *blob, unsigned int *length) in hb_blob_get_data_writable() argument
366 if (!blob->try_make_writable ()) { in hb_blob_get_data_writable()
374 *length = blob->length; in hb_blob_get_data_writable()
376 return const_cast<char *> (blob->data); in hb_blob_get_data_writable()