Lines Matching defs:bytes
108 PyByteArray_FromStringAndSize(const char *bytes, Py_ssize_t size)
139 if (bytes != NULL && size > 0)
140 memcpy(new->ob_bytes, bytes, size);
432 char *bytes, Py_ssize_t bytes_len)
479 /* memmove() removed bytes, the bytearray object cannot be
497 /* Make the place for the additional bytes */
509 memcpy(buf + lo, bytes, bytes_len);
518 void *bytes;
536 bytes = NULL;
547 bytes = vbytes.buf;
557 res = bytearray_setslice_linear(self, lo, hi, bytes, needed);
596 char *buf, *bytes;
651 bytes = NULL;
658 "can assign only bytes, buffers, or iterables "
672 bytes = PyByteArray_AS_STRING(values);
680 return bytearray_setslice_linear(self, start, stop, bytes, needed);
710 /* Move the tail of the bytes, in one chunk */
730 "attempt to assign bytes of size %zd "
736 buf[cur] = bytes[i];
941 char *bytes;
981 bytes = PyByteArray_AS_STRING(self);
986 c = bytes[i];
1070 /* In ISO C, memcmp() guarantees to use unsigned bytes! */
1272 Translation table, which must be a bytes object of length 256.
1381 Return a translation table useable for the bytes or bytearray translate method.
1386 The bytes objects frm and to must be of the same length.
1867 bytearray_strip_impl_helper(PyByteArrayObject* self, PyObject* bytes, int striptype)
1874 if (bytes == Py_None) {
1879 if (PyObject_GetBuffer(bytes, &vbytes, PyBUF_SIMPLE) != 0)
1899 if (bytes != Py_None)
1907 bytes: object = None
1910 Strip leading and trailing bytes contained in the argument.
1916 bytearray_strip_impl(PyByteArrayObject *self, PyObject *bytes)
1919 return bytearray_strip_impl_helper(self, bytes, BOTHSTRIP);
1925 bytes: object = None
1928 Strip leading bytes contained in the argument.
1934 bytearray_lstrip_impl(PyByteArrayObject *self, PyObject *bytes)
1937 return bytearray_strip_impl_helper(self, bytes, LEFTSTRIP);
1943 bytes: object = None
1946 Strip trailing bytes contained in the argument.
1952 bytearray_rstrip_impl(PyByteArrayObject *self, PyObject *bytes)
1955 return bytearray_strip_impl_helper(self, bytes, RIGHTSTRIP);
1986 Return the number of bytes actually allocated.");
2000 Concatenate any number of bytes/bytearray objects.
2063 An optional single character or byte to separate hex bytes.
2065 How many bytes between separators. Positive values count from the
2149 Returns the size of the bytearray object in memory, in bytes.
2278 bytearray(int) -> bytes array of size given by the parameter initialized with null bytes\n\
2279 bytearray() -> empty bytes array\n\
2284 - a bytes or a buffer object\n\