Lines Matching refs:ob_bytes
148 new->ob_bytes = NULL; in PyByteArray_FromStringAndSize()
153 new->ob_bytes = PyObject_Malloc(alloc); in PyByteArray_FromStringAndSize()
154 if (new->ob_bytes == NULL) { in PyByteArray_FromStringAndSize()
159 memcpy(new->ob_bytes, bytes, size); in PyByteArray_FromStringAndSize()
160 new->ob_bytes[size] = '\0'; /* Trailing null byte */ in PyByteArray_FromStringAndSize()
164 new->ob_start = new->ob_bytes; in PyByteArray_FromStringAndSize()
196 size_t logical_offset = (size_t) (obj->ob_start - obj->ob_bytes); in PyByteArray_Resize()
249 PyObject_Free(obj->ob_bytes); in PyByteArray_Resize()
252 sval = PyObject_Realloc(obj->ob_bytes, alloc); in PyByteArray_Resize()
259 obj->ob_bytes = obj->ob_start = sval; in PyByteArray_Resize()
262 obj->ob_bytes[size] = '\0'; /* Trailing null byte */ in PyByteArray_Resize()
290 memcpy(result->ob_bytes, va.buf, va.len); in PyByteArray_Concat()
291 memcpy(result->ob_bytes + va.len, vb.buf, vb.len); in PyByteArray_Concat()
353 memset(result->ob_bytes, self->ob_bytes[0], size); in bytearray_repeat()
357 memcpy(result->ob_bytes + i*mysize, self->ob_bytes, mysize); in bytearray_repeat()
1078 if (self->ob_bytes != 0) { in bytearray_dealloc()
1079 PyObject_Free(self->ob_bytes); in bytearray_dealloc()