Lines Matching refs:ds

15     data_string *ds = array_data_string_init();  in array_data_string_copy()  local
16 if (!buffer_is_unset(&src->key)) buffer_copy_buffer(&ds->key, &src->key); in array_data_string_copy()
17 buffer_copy_buffer(&ds->value, &src->value); in array_data_string_copy()
18 return (data_unset *)ds; in array_data_string_copy()
33 data_string *ds = (data_string *)du; in array_data_string_free() local
34 free(ds->key.ptr); in array_data_string_free()
35 free(ds->value.ptr); in array_data_string_free()
36 free(ds); in array_data_string_free()
46 data_string *ds = ck_calloc(1, sizeof(*ds)); in array_data_string_init() local
47 ds->type = TYPE_STRING; in array_data_string_init()
48 ds->fn = &string_fn; in array_data_string_init()
49 return ds; in array_data_string_init()
165 data_string * const ds = data[i]; in array_reset_data_strings() local
167 buffer_reset(&ds->key); in array_reset_data_strings()
168 buffer_reset(&ds->value); in array_reset_data_strings()
333 data_unset * const ds = data[i]; in array_get_unused_element()
339 return ds; in array_get_unused_element()
382 data_string *ds = (data_string *)array_get_unused_element(a, TYPE_STRING); in array_insert_string_at_pos() local
383 if (NULL == ds) ds = array_data_string_init(); in array_insert_string_at_pos()
384 return (data_string *)array_insert_data_at_pos(a, (data_unset *)ds, pos); in array_insert_string_at_pos()
392 data_string * const ds = array_insert_string_at_pos(a, (uint32_t)(-ipos-1)); in array_get_buf_ptr_ext() local
393 ds->ext = ext; in array_get_buf_ptr_ext()
394 buffer_copy_string_len(&ds->key, k, klen); in array_get_buf_ptr_ext()
395 buffer_clear(&ds->value); in array_get_buf_ptr_ext()
396 return &ds->value; in array_get_buf_ptr_ext()
413 data_string * const ds = array_insert_string_at_pos(a, (uint32_t)(-ipos-1)); in array_get_buf_ptr() local
414 buffer_copy_string_len(&ds->key, k, klen); in array_get_buf_ptr()
415 buffer_clear(&ds->value); in array_get_buf_ptr()
416 return &ds->value; in array_get_buf_ptr()
420 data_string * const ds = array_insert_string_at_pos(a, a->used); in array_insert_value() local
421 buffer_clear(&ds->key); in array_insert_value()
422 buffer_copy_string_len(&ds->value, v, vlen); in array_insert_value()