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)) {
651 needed = Py_SIZE(values);
669 Py_SIZE(self) - stop);
672 Py_SIZE(self) + needed - slicelen) < 0)
682 Py_SIZE(self) - start - needed);
756 if (Py_SIZE(self) != 0) {
894 if (Py_SIZE(self) < self->ob_alloc)
895 Py_SIZE(self)++;
896 else if (PyByteArray_Resize((PyObject *)self, Py_SIZE(self)+1) < 0)
898 self->ob_bytes[Py_SIZE(self)-1] = value;
919 Py_ssize_t length = Py_SIZE(self);
1010 return PyBytes_FromStringAndSize(((PyByteArrayObject*)op)->ob_bytes, Py_SIZE(op));
1288 pos = stringlib_find(PyByteArray_AS_STRING(self), Py_SIZE(self),
1298 return memchr(PyByteArray_AS_STRING(self), ival, Py_SIZE(self)) != NULL;
2190 Py_ssize_t i, j, n = Py_SIZE(self);
2213 Py_ssize_t where, n = Py_SIZE(self);
2249 Py_ssize_t n = Py_SIZE(self);
2281 if (bytearray_setslice(self, Py_SIZE(self), Py_SIZE(self), arg) == -1)
2333 if (bytearray_setslice(self, Py_SIZE(self), Py_SIZE(self), bytearray_obj) == -1)
2349 Py_ssize_t where = -1, n = Py_SIZE(self);
2360 where += Py_SIZE(self);
2361 if (where < 0 || where >= Py_SIZE(self)) {
2384 Py_ssize_t where, n = Py_SIZE(self);
2454 mysize = Py_SIZE(self);
2490 mysize = Py_SIZE(self);
2523 mysize = Py_SIZE(self);
2581 Py_ssize_t mysize = Py_SIZE(self);
2609 totalsize += Py_SIZE(obj);
2623 Py_ssize_t size = Py_SIZE(obj);
2739 Py_SIZE(self), NULL);
2741 latin1 = PyString_FromStringAndSize(self->ob_bytes, Py_SIZE(self));