Lines Matching refs:ct_itemdescr
227 struct _ctypedescr *ct_itemdescr; /* ptrs and arrays: the item type */ member
394 ct->ct_itemdescr = NULL; in ctypedescr_new()
414 ct->ct_itemdescr = ct_base; in ctypedescr_new_on_top()
449 Py_XDECREF(ct->ct_itemdescr); in ctypedescr_dealloc()
459 Py_VISIT(ct->ct_itemdescr); in ctypedescr_traverse()
467 Py_CLEAR(ct->ct_itemdescr); in ctypedescr_clear()
520 Py_INCREF(ct->ct_itemdescr); in ctypeget_item()
521 return (PyObject *)ct->ct_itemdescr; in ctypeget_item()
1401 cf->cf_type->ct_itemdescr, &value); in convert_vfield_from_object()
1409 cf->cf_type->ct_itemdescr->ct_size, in convert_vfield_from_object()
1464 CTypeDescrObject *ctitem = ct->ct_itemdescr; in convert_array_from_object()
1668 ct->ct_itemdescr->ct_size == 1 && in convert_from_object()
1669 ctinit->ct_itemdescr->ct_size == 1) { in convert_from_object()
1860 ct = ct->ct_itemdescr; in get_alignment()
1905 x *= cd->c_type->ct_itemdescr->ct_size; in cdataowning_dealloc()
2205 size = cd->c_type->ct_itemdescr->ct_size; in cdataowning_repr()
2207 size = get_array_length(cd) * cd->c_type->ct_itemdescr->ct_size; in cdataowning_repr()
2492 return cd->c_data + i * cd->c_type->ct_itemdescr->ct_size; in _cdata_get_indexed_ptr()
2567 cdata = cd->c_data + ct->ct_itemdescr->ct_size * bounds[0]; in cdata_slice()
2582 ct = ct->ct_itemdescr; in cdata_ass_slice()
2589 if ((ctv->ct_flags & CT_ARRAY) && (ctv->ct_itemdescr == ct) && in cdata_ass_slice()
2677 return convert_to_object(c, cd->c_type->ct_itemdescr); in cdataowning_subscript()
2693 return convert_to_object(c, cd->c_type->ct_itemdescr); in cdata_subscript()
2705 ctitem = cd->c_type->ct_itemdescr; in cdata_ass_sub()
2751 itemsize = ctptr->ct_itemdescr->ct_size; in _cdata_add_or_sub()
2789 (ct->ct_itemdescr->ct_size <= 0 && in cdata_sub()
2796 itemsize = ct->ct_itemdescr->ct_size; in cdata_sub()
2839 ct = ct->ct_itemdescr; in cdata_getattro()
2862 array_len = size / cf->cf_type->ct_itemdescr->ct_size; in cdata_getattro()
2892 ct = ct->ct_itemdescr; in cdata_setattro()
2960 ctitem = ctptr->ct_itemdescr; in _prepare_pointer_call_argument()
3236 ct = ct->ct_itemdescr; in cdata_dir()
3701 it->di_itemtype = cd->c_type->ct_itemdescr; in cdata_iter()
3835 ctitem = ct->ct_itemdescr; in direct_newp()
3868 explicitlength = get_new_array_length(ct->ct_itemdescr, &init); in direct_newp()
3871 ctitem = ct->ct_itemdescr; in direct_newp()
3896 cds = allocate_with_allocator(dataoffset, datasize, ct->ct_itemdescr, in direct_newp()
3928 (ct->ct_flags & CT_POINTER) ? ct->ct_itemdescr : ct, init) < 0) { in direct_newp()
4130 (ct->ct_itemdescr->ct_flags & CT_IS_FILE) && in do_cast()
4913 ctitem = ctptr->ct_itemdescr; in new_array_type()
5602 ct1 = ct1->ct_itemdescr; in fb_fill_type()
5623 ct = ct->ct_itemdescr; in fb_fill_type()
6574 size = get_array_length(cd) * cd->c_type->ct_itemdescr->ct_size; in direct_sizeof_cdata()
6631 ct = ct->ct_itemdescr; in direct_typeoffsetof()
6664 ct->ct_itemdescr->ct_size < 0) { in direct_typeoffsetof()
6670 res = ct->ct_itemdescr; in direct_typeoffsetof()
6671 *offset = MUL_WRAPAROUND(index, ct->ct_itemdescr->ct_size); in direct_typeoffsetof()
6672 if ((*offset / ct->ct_itemdescr->ct_size) != index) { in direct_typeoffsetof()
6759 if (cd->c_type->ct_itemdescr != NULL && in b_string()
6760 cd->c_type->ct_itemdescr->ct_flags & (CT_PRIMITIVE_CHAR | in b_string()
6763 !(cd->c_type->ct_itemdescr->ct_flags & CT_IS_BOOL)) { in b_string()
6778 if (cd->c_type->ct_itemdescr->ct_size == sizeof(char)) { in b_string()
6794 else if (cd->c_type->ct_itemdescr->ct_flags & CT_PRIMITIVE_CHAR) { in b_string()
6795 switch (cd->c_type->ct_itemdescr->ct_size) { in b_string()
6897 ctitem = cd->c_type->ct_itemdescr; in b_unpack()
7024 size = cd->c_type->ct_itemdescr->ct_size; in b_buffer_new()
7028 size = get_array_length(cd) * cd->c_type->ct_itemdescr->ct_size; in b_buffer_new()
7237 if (ct->ct_itemdescr->ct_size == 1) { in direct_from_buffer()
7241 else if (ct->ct_itemdescr->ct_size > 0) { in direct_from_buffer()
7244 arraylength = view->len / ct->ct_itemdescr->ct_size; in direct_from_buffer()
7775 (ct->ct_itemdescr->ct_flags & CT_IS_FILE) && in _cffi_to_c_pointer()