Lines Matching refs:Py_SIZE
31 if (Py_SIZE(arg) != 1) {
71 return Py_SIZE(self);
83 return Py_SIZE(self);
90 *lenp = Py_SIZE(self);
103 return Py_SIZE(self);
116 ret = PyBuffer_FillInfo(view, (PyObject*)obj, ptr, Py_SIZE(obj), 0, flags);
198 Py_SIZE(new) = size;
233 if (size == Py_SIZE(self)) {
246 Py_SIZE(self) = size;
266 Py_SIZE(self) = size;
314 return Py_SIZE(self);
330 mysize = Py_SIZE(self);
337 Py_SIZE(self) = size;
338 self->ob_bytes[Py_SIZE(self)] = '\0'; /* Trailing null byte */
359 mysize = Py_SIZE(self);
384 mysize = Py_SIZE(self);
389 Py_SIZE(self) = size;
390 self->ob_bytes[Py_SIZE(self)] = '\0'; /* Trailing null byte */
411 i += Py_SIZE(self);
412 if (i < 0 || i >= Py_SIZE(self)) {
431 if (i < 0 || i >= Py_SIZE(self)) {
514 if (hi > Py_SIZE(self))
515 hi = Py_SIZE(self);
534 Py_SIZE(self) - hi);
538 Py_SIZE(self) + needed - avail) < 0) {
550 Py_SIZE(self) - lo - needed);
570 i += Py_SIZE(self);
572 if (i < 0 || i >= Py_SIZE(self)) {
602 if (i < 0 || i >= Py_SIZE(self)) {
657 needed = Py_SIZE(values);
675 Py_SIZE(self) - stop);
678 Py_SIZE(self) + needed - slicelen) < 0)
688 Py_SIZE(self) - start - needed);
762 if (Py_SIZE(self) != 0) {
900 if (Py_SIZE(self) < self->ob_alloc)
901 Py_SIZE(self)++;
902 else if (PyByteArray_Resize((PyObject *)self, Py_SIZE(self)+1) < 0)
904 self->ob_bytes[Py_SIZE(self)-1] = value;
925 Py_ssize_t length = Py_SIZE(self);
1014 return PyBytes_FromStringAndSize(((PyByteArrayObject*)op)->ob_bytes, Py_SIZE(op));
1292 pos = stringlib_find(PyByteArray_AS_STRING(self), Py_SIZE(self),
1302 return memchr(PyByteArray_AS_STRING(self), ival, Py_SIZE(self)) != NULL;
2194 Py_ssize_t i, j, n = Py_SIZE(self);
2217 Py_ssize_t where, n = Py_SIZE(self);
2253 Py_ssize_t n = Py_SIZE(self);
2285 if (bytearray_setslice(self, Py_SIZE(self), Py_SIZE(self), arg) == -1)
2339 if (bytearray_setslice(self, Py_SIZE(self), Py_SIZE(self), bytearray_obj) == -1) {
2357 Py_ssize_t where = -1, n = Py_SIZE(self);
2368 where += Py_SIZE(self);
2369 if (where < 0 || where >= Py_SIZE(self)) {
2392 Py_ssize_t where, n = Py_SIZE(self);
2462 mysize = Py_SIZE(self);
2498 mysize = Py_SIZE(self);
2531 mysize = Py_SIZE(self);
2589 Py_ssize_t mysize = Py_SIZE(self);
2617 totalsize += Py_SIZE(obj);
2631 Py_ssize_t size = Py_SIZE(obj);
2747 Py_SIZE(self), NULL);
2749 latin1 = PyString_FromStringAndSize(self->ob_bytes, Py_SIZE(self));