Lines Matching refs:ob_bytes
129 new->ob_bytes = NULL;
134 new->ob_bytes = PyObject_Malloc(alloc);
135 if (new->ob_bytes == NULL) {
140 memcpy(new->ob_bytes, bytes, size);
141 new->ob_bytes[size] = '\0'; /* Trailing null byte */
145 new->ob_start = new->ob_bytes;
177 size_t logical_offset = (size_t) (obj->ob_start - obj->ob_bytes);
230 PyObject_Free(obj->ob_bytes);
233 sval = PyObject_Realloc(obj->ob_bytes, alloc);
240 obj->ob_bytes = obj->ob_start = sval;
243 obj->ob_bytes[size] = '\0'; /* Trailing null byte */
270 // result->ob_bytes is NULL if result is an empty bytearray:
272 if (result != NULL && result->ob_bytes != NULL) {
273 memcpy(result->ob_bytes, va.buf, va.len);
274 memcpy(result->ob_bytes + va.len, vb.buf, vb.len);
332 _PyBytes_Repeat(result->ob_bytes, size, buf, mysize);
1092 if (self->ob_bytes != 0) {
1093 PyObject_Free(self->ob_bytes);