Lines Matching defs:buf

273         memcpy(result->ob_bytes, va.buf, va.len);
274 memcpy(result->ob_bytes + va.len, vb.buf, vb.len);
314 memcpy(PyByteArray_AS_STRING(self) + size, vo.buf, vo.len);
330 const char* buf = PyByteArray_AS_STRING(self);
332 _PyBytes_Repeat(result->ob_bytes, size, buf, mysize);
354 char* buf = PyByteArray_AS_STRING(self);
355 _PyBytes_Repeat(buf, size, buf, mysize);
435 char *buf = PyByteArray_AS_STRING(self);
461 memmove(buf + lo + bytes_len, buf + hi,
484 buf = PyByteArray_AS_STRING(self);
496 buf = PyByteArray_AS_STRING(self);
504 memmove(buf + lo + bytes_len, buf + hi,
509 memcpy(buf + lo, bytes, bytes_len);
547 bytes = vbytes.buf;
596 char *buf, *bytes;
597 buf = PyByteArray_AS_STRING(self);
632 buf[i] = (char)ival;
707 memmove(buf + cur - i,
708 buf + cur + 1, lim);
713 memmove(buf + cur - slicelen,
714 buf + cur,
736 buf[cur] = bytes[i];
1068 cmp = memcmp(self_bytes.buf, other_bytes.buf,
1221 const char *prefix_start = prefix->buf;
1253 const char *suffix_start = suffix->buf;
1309 table_chars = (const char*)vtable.buf;
1320 vdel.buf = NULL;
1349 trans_table[(int) Py_CHARMASK( ((unsigned char*)vdel.buf)[i] )] = -1;
1419 (const char *)old->buf, old->len,
1420 (const char *)new->buf, new->len, count);
1455 sub = vsub.buf;
1566 sub = vsub.buf;
1627 char *buf;
1636 buf = PyByteArray_AS_STRING(self);
1645 memmove(buf + index + 1, buf + index, n - index);
1646 buf[index] = item;
1697 char *buf;
1729 buf = PyByteArray_AS_STRING(bytearray_obj);
1738 buf[len++] = value;
1758 /* Recompute the `buf' pointer, since the resizing operation may
1760 buf = PyByteArray_AS_STRING(bytearray_obj);
1805 char *buf;
1821 buf = PyByteArray_AS_STRING(self);
1822 value = buf[index];
1823 memmove(buf + index, buf + index + 1, n - index);
1845 char *buf = PyByteArray_AS_STRING(self);
1847 where = stringlib_find_char(buf, n, value);
1855 memmove(buf + where, buf + where + 1, n - where);
1881 bytesptr = (const char*)vbytes.buf;
2095 const char *buf;
2105 buf = PyByteArray_AS_STRING(self);
2108 PyObject *latin1 = PyUnicode_DecodeLatin1(buf, Py_SIZE(self), NULL);
2113 return Py_BuildValue("(O(y#)N)", Py_TYPE(self), buf, Py_SIZE(self), state);