Searched refs:cmem (Results 1 – 2 of 2) sorted by relevance
2796 CDataObject *cmem; in PyCData_FromBaseObj() local2807 cmem = (CDataObject *)((PyTypeObject *)type)->tp_alloc((PyTypeObject *)type, 0); in PyCData_FromBaseObj()2808 if (cmem == NULL) in PyCData_FromBaseObj()2810 assert(CDataObject_Check(cmem)); in PyCData_FromBaseObj()2812 cmem->b_length = dict->length; in PyCData_FromBaseObj()2813 cmem->b_size = dict->size; in PyCData_FromBaseObj()2816 cmem->b_ptr = adr; in PyCData_FromBaseObj()2817 cmem->b_needsfree = 0; in PyCData_FromBaseObj()2819 cmem->b_base = (CDataObject *)base; in PyCData_FromBaseObj()2820 cmem->b_index = index; in PyCData_FromBaseObj()[all …]
2910 CDataObject *cmem; in PyCData_FromBaseObj() local2921 cmem = (CDataObject *)((PyTypeObject *)type)->tp_alloc((PyTypeObject *)type, 0); in PyCData_FromBaseObj()2922 if (cmem == NULL) in PyCData_FromBaseObj()2924 assert(CDataObject_Check(cmem)); in PyCData_FromBaseObj()2926 cmem->b_length = dict->length; in PyCData_FromBaseObj()2927 cmem->b_size = dict->size; in PyCData_FromBaseObj()2930 cmem->b_ptr = adr; in PyCData_FromBaseObj()2931 cmem->b_needsfree = 0; in PyCData_FromBaseObj()2933 cmem->b_base = (CDataObject *)base; in PyCData_FromBaseObj()2934 cmem->b_index = index; in PyCData_FromBaseObj()[all …]