• Home
  • Raw
  • Download

Lines Matching refs:ob_item

42     char *ob_item;  member
130 self->ob_item != NULL) { in array_resize()
136 PyMem_FREE(self->ob_item); in array_resize()
137 self->ob_item = NULL; in array_resize()
156 items = self->ob_item; in array_resize()
167 self->ob_item = items; in array_resize()
188 long x = ((signed char *)ap->ob_item)[i]; in b_getitem()
212 ((char *)ap->ob_item)[i] = (char)x; in b_setitem()
219 long x = ((unsigned char *)ap->ob_item)[i]; in BB_getitem()
231 ((char *)ap->ob_item)[i] = x; in BB_setitem()
238 return PyUnicode_FromOrdinal(((wchar_t *) ap->ob_item)[i]); in u_getitem()
261 ((wchar_t *)ap->ob_item)[i] = w; in u_setitem()
270 return PyLong_FromLong((long) ((short *)ap->ob_item)[i]); in h_getitem()
282 ((short *)ap->ob_item)[i] = x; in h_setitem()
289 return PyLong_FromLong((long) ((unsigned short *)ap->ob_item)[i]); in HH_getitem()
311 ((short *)ap->ob_item)[i] = (short)x; in HH_setitem()
318 return PyLong_FromLong((long) ((int *)ap->ob_item)[i]); in i_getitem()
329 ((int *)ap->ob_item)[i] = x; in i_setitem()
337 (unsigned long) ((unsigned int *)ap->ob_item)[i]); in II_getitem()
380 ((unsigned int *)ap->ob_item)[i] = (unsigned int)x; in II_setitem()
391 return PyLong_FromLong(((long *)ap->ob_item)[i]); in l_getitem()
401 ((long *)ap->ob_item)[i] = x; in l_setitem()
408 return PyLong_FromUnsignedLong(((unsigned long *)ap->ob_item)[i]); in LL_getitem()
432 ((unsigned long *)ap->ob_item)[i] = x; in LL_setitem()
443 return PyLong_FromLongLong(((long long *)ap->ob_item)[i]); in q_getitem()
453 ((long long *)ap->ob_item)[i] = x; in q_setitem()
461 ((unsigned long long *)ap->ob_item)[i]); in QQ_getitem()
485 ((unsigned long long *)ap->ob_item)[i] = x; in QQ_setitem()
496 return PyFloat_FromDouble((double) ((float *)ap->ob_item)[i]); in f_getitem()
506 ((float *)ap->ob_item)[i] = x; in f_setitem()
513 return PyFloat_FromDouble(((double *)ap->ob_item)[i]); in d_getitem()
523 ((double *)ap->ob_item)[i] = x; in d_setitem()
605 op->ob_item = NULL; in newarrayobject()
608 op->ob_item = PyMem_NEW(char, nbytes); in newarrayobject()
609 if (op->ob_item == NULL) { in newarrayobject()
642 items = self->ob_item; in ins1()
665 if (op->ob_item != NULL) in array_dealloc()
666 PyMem_DEL(op->ob_item); in array_dealloc()
699 int result = va->ob_descr->compareitems(va->ob_item, wa->ob_item, in array_richcompare()
816 memcpy(np->ob_item, a->ob_item + ilow * a->ob_descr->itemsize, in array_slice()
877 memcpy(np->ob_item, a->ob_item, Py_SIZE(a)*a->ob_descr->itemsize); in array_concat()
880 memcpy(np->ob_item + Py_SIZE(a)*a->ob_descr->itemsize, in array_concat()
881 b->ob_item, Py_SIZE(b)*b->ob_descr->itemsize); in array_concat()
908 memset(np->ob_item, a->ob_item[0], newbytes); in array_repeat()
911 memcpy(np->ob_item, a->ob_item, oldbytes); in array_repeat()
914 memcpy(np->ob_item+done, np->ob_item, ncopy); in array_repeat()
936 item = a->ob_item; in array_del_slice()
1024 memcpy(self->ob_item + oldsize * self->ob_descr->itemsize, in array_do_extend()
1025 b->ob_item, bbsize * b->ob_descr->itemsize); in array_do_extend()
1066 items = p = self->ob_item; in array_inplace_repeat()
1297 v = PyLong_FromVoidPtr(self->ob_item); in array_array_buffer_info_impl()
1350 for (p = self->ob_item, i = Py_SIZE(self); --i >= 0; p += 2) { in array_array_byteswap_impl()
1357 for (p = self->ob_item, i = Py_SIZE(self); --i >= 0; p += 4) { in array_array_byteswap_impl()
1367 for (p = self->ob_item, i = Py_SIZE(self); --i >= 0; p += 8) { in array_array_byteswap_impl()
1407 for (p = self->ob_item, in array_array_reverse_impl()
1408 q = self->ob_item + (Py_SIZE(self) - 1)*itemsize; in array_array_reverse_impl()
1505 char* ptr = self->ob_item + i*BLOCKSIZE; in array_array_tofile()
1626 memcpy(self->ob_item + old_size * itemsize, in frombytes()
1660 return PyBytes_FromStringAndSize(self->ob_item, in array_array_tobytes_impl()
1702 ustr, ((wchar_t *)self->ob_item) + old_size, ustr_length); in array_array_fromunicode_impl()
1727 return PyUnicode_FromWideChar((wchar_t *) self->ob_item, Py_SIZE(self)); in array_array_tounicode_impl()
2331 memcpy(((arrayobject *)result)->ob_item, in array_subscr()
2332 self->ob_item + start * itemsize, in array_subscr()
2344 memcpy(ar->ob_item + i*itemsize, in array_subscr()
2345 self->ob_item + cur*itemsize, in array_subscr()
2445 memmove(self->ob_item + (start + needed) * itemsize, in array_ass_subscr()
2446 self->ob_item + stop * itemsize, in array_ass_subscr()
2456 memmove(self->ob_item + (start + needed) * itemsize, in array_ass_subscr()
2457 self->ob_item + stop * itemsize, in array_ass_subscr()
2461 memcpy(self->ob_item + start * itemsize, in array_ass_subscr()
2462 other->ob_item, needed * itemsize); in array_ass_subscr()
2481 memmove(self->ob_item + (cur - i) * itemsize, in array_ass_subscr()
2482 self->ob_item + (cur + 1) * itemsize, in array_ass_subscr()
2487 memmove(self->ob_item + (cur-slicelength) * itemsize, in array_ass_subscr()
2488 self->ob_item + cur * itemsize, in array_ass_subscr()
2508 memcpy(self->ob_item + cur * itemsize, in array_ass_subscr()
2509 other->ob_item + i * itemsize, in array_ass_subscr()
2534 view->buf = (void *)self->ob_item; in array_buffer_getbuf()
2696 PyMem_Free(self->ob_item); in array_new()
2697 self->ob_item = (char *)ustr; in array_new()
2705 memcpy(self->ob_item, other->ob_item, len * other->ob_descr->itemsize); in array_new()