• Home
  • Raw
  • Download

Lines Matching refs:ob_item

33     char *ob_item;  member
57 self->ob_item != NULL) { in array_resize()
75 items = self->ob_item; in array_resize()
86 self->ob_item = items; in array_resize()
107 return PyString_FromStringAndSize(&((char *)ap->ob_item)[i], 1); in c_getitem()
117 ((char *)ap->ob_item)[i] = x; in c_setitem()
124 long x = ((char *)ap->ob_item)[i]; in b_getitem()
150 ((char *)ap->ob_item)[i] = (char)x; in b_setitem()
157 long x = ((unsigned char *)ap->ob_item)[i]; in BB_getitem()
169 ((char *)ap->ob_item)[i] = x; in BB_setitem()
177 return PyUnicode_FromUnicode(&((Py_UNICODE *) ap->ob_item)[i], 1); in u_getitem()
194 ((Py_UNICODE *)ap->ob_item)[i] = p[0]; in u_setitem()
202 return PyInt_FromLong((long) ((short *)ap->ob_item)[i]); in h_getitem()
213 ((short *)ap->ob_item)[i] = x; in h_setitem()
220 return PyInt_FromLong((long) ((unsigned short *)ap->ob_item)[i]); in HH_getitem()
242 ((short *)ap->ob_item)[i] = (short)x; in HH_setitem()
249 return PyInt_FromLong((long) ((int *)ap->ob_item)[i]); in i_getitem()
260 ((int *)ap->ob_item)[i] = x; in i_setitem()
268 (unsigned long) ((unsigned int *)ap->ob_item)[i]); in II_getitem()
299 ((unsigned int *)ap->ob_item)[i] = (unsigned int)x; in II_setitem()
306 return PyInt_FromLong(((long *)ap->ob_item)[i]); in l_getitem()
316 ((long *)ap->ob_item)[i] = x; in l_setitem()
323 return PyLong_FromUnsignedLong(((unsigned long *)ap->ob_item)[i]); in LL_getitem()
354 ((unsigned long *)ap->ob_item)[i] = x; in LL_setitem()
361 return PyFloat_FromDouble((double) ((float *)ap->ob_item)[i]); in f_getitem()
371 ((float *)ap->ob_item)[i] = x; in f_setitem()
378 return PyFloat_FromDouble(((double *)ap->ob_item)[i]); in d_getitem()
388 ((double *)ap->ob_item)[i] = x; in d_setitem()
440 op->ob_item = NULL; in newarrayobject()
443 op->ob_item = PyMem_NEW(char, nbytes); in newarrayobject()
444 if (op->ob_item == NULL) { in newarrayobject()
476 items = self->ob_item; in ins1()
499 if (op->ob_item != NULL) in array_dealloc()
500 PyMem_DEL(op->ob_item); in array_dealloc()
624 memcpy(np->ob_item, a->ob_item + ilow * a->ob_descr->itemsize, in array_slice()
666 memcpy(np->ob_item, a->ob_item, Py_SIZE(a)*a->ob_descr->itemsize); in array_concat()
669 memcpy(np->ob_item + Py_SIZE(a)*a->ob_descr->itemsize, in array_concat()
670 b->ob_item, Py_SIZE(b)*b->ob_descr->itemsize); in array_concat()
695 p = np->ob_item; in array_repeat()
698 memcpy(p, a->ob_item, nbytes); in array_repeat()
746 item = a->ob_item; in array_ass_slice()
755 a->ob_item = item; in array_ass_slice()
768 a->ob_item = item; in array_ass_slice()
773 memcpy(item + ilow*a->ob_descr->itemsize, b->ob_item, in array_ass_slice()
842 old_item = self->ob_item; in array_do_extend()
843 PyMem_RESIZE(self->ob_item, char, size*self->ob_descr->itemsize); in array_do_extend()
844 if (self->ob_item == NULL) { in array_do_extend()
845 self->ob_item = old_item; in array_do_extend()
850 memcpy(self->ob_item + Py_SIZE(self)*self->ob_descr->itemsize, in array_do_extend()
851 b->ob_item, Py_SIZE(b)*b->ob_descr->itemsize); in array_do_extend()
884 items = self->ob_item; in array_inplace_repeat()
892 self->ob_item = NULL; in array_inplace_repeat()
908 self->ob_item = items; in array_inplace_repeat()
1086 v = PyLong_FromVoidPtr(self->ob_item); in array_buffer_info()
1134 for (p = self->ob_item, i = Py_SIZE(self); --i >= 0; p += 2) { in array_byteswap()
1141 for (p = self->ob_item, i = Py_SIZE(self); --i >= 0; p += 4) { in array_byteswap()
1151 for (p = self->ob_item, i = Py_SIZE(self); --i >= 0; p += 8) { in array_byteswap()
1191 for (p = self->ob_item, in array_reverse()
1192 q = self->ob_item + (Py_SIZE(self) - 1)*itemsize; in array_reverse()
1227 char *item = self->ob_item; in array_fromfile()
1243 self->ob_item = item; in array_fromfile()
1251 self->ob_item = item; in array_fromfile()
1296 if (fwrite(self->ob_item, self->ob_descr->itemsize, in array_tofile()
1336 char *item = self->ob_item; in array_fromlist()
1343 self->ob_item = item; in array_fromlist()
1356 self->ob_item = item; in array_fromlist()
1405 if (str == self->ob_item) { in array_fromstring()
1417 char *item = self->ob_item; in array_fromstring()
1427 self->ob_item = item; in array_fromstring()
1448 return PyString_FromStringAndSize(self->ob_item, in array_tostring()
1479 Py_UNICODE *item = (Py_UNICODE *) self->ob_item; in array_fromunicode()
1488 self->ob_item = (char *) item; in array_fromunicode()
1516 return PyUnicode_FromUnicode((Py_UNICODE *) self->ob_item, Py_SIZE(self)); in array_tounicode()
1718 memcpy(((arrayobject *)result)->ob_item, in array_subscr()
1719 self->ob_item + start * itemsize, in array_subscr()
1731 memcpy(ar->ob_item + i*itemsize, in array_subscr()
1732 self->ob_item + cur*itemsize, in array_subscr()
1822 memmove(self->ob_item + (start + needed) * itemsize, in array_ass_subscr()
1823 self->ob_item + stop * itemsize, in array_ass_subscr()
1833 memmove(self->ob_item + (start + needed) * itemsize, in array_ass_subscr()
1834 self->ob_item + stop * itemsize, in array_ass_subscr()
1838 memcpy(self->ob_item + start * itemsize, in array_ass_subscr()
1839 other->ob_item, needed * itemsize); in array_ass_subscr()
1858 memmove(self->ob_item + (cur - i) * itemsize, in array_ass_subscr()
1859 self->ob_item + (cur + 1) * itemsize, in array_ass_subscr()
1864 memmove(self->ob_item + (cur-slicelength) * itemsize, in array_ass_subscr()
1865 self->ob_item + cur * itemsize, in array_ass_subscr()
1884 memcpy(self->ob_item + cur * itemsize, in array_ass_subscr()
1885 other->ob_item + i * itemsize, in array_ass_subscr()
1908 *ptr = (void *)self->ob_item; in array_buffer_getreadbuf()
1922 *ptr = (void *)self->ob_item; in array_buffer_getwritebuf()
2047 char *item = self->ob_item; in array_new()
2054 self->ob_item = item; in array_new()