Lines Matching defs:bytes
723 /* Expose a raw memory area as a view of contiguous bytes. flags can be
724 PyBUF_READ or PyBUF_WRITE. view->format is set to "B" (unsigned bytes).
806 "memoryview: a bytes-like object is required, not '%.200s'",
836 in mbuf_dealloc(). The releasebufferproc of the bytes
845 PyObject *bytes;
852 bytes = PyBytes_FromStringAndSize(NULL, src->len);
853 if (bytes == NULL)
856 mbuf = (_PyManagedBufferObject *)_PyManagedBuffer_FromObject(bytes);
857 Py_DECREF(bytes);
914 based on a new bytes object. If order={'C', 'A'ny}, use 'C' order,
1505 "memoryview: cannot cast to unsigned bytes if the format flag "
1729 /* bytes object */
1887 /* bytes object */
2183 PyObject *bytes;
2201 bytes = PyBytes_FromStringAndSize(NULL, src->len);
2202 if (bytes == NULL)
2205 if (PyBuffer_ToContiguous(PyBytes_AS_STRING(bytes), src, src->len, ord) < 0) {
2206 Py_DECREF(bytes);
2210 return bytes;
2217 An optional single character or byte to separate hex bytes.
2219 How many bytes between separators. Positive values count from the
2242 PyObject *bytes;
2251 bytes = PyBytes_FromStringAndSize(NULL, src->len);
2252 if (bytes == NULL)
2255 if (PyBuffer_ToContiguous(PyBytes_AS_STRING(bytes), src, src->len, 'C') < 0) {
2256 Py_DECREF(bytes);
2261 PyBytes_AS_STRING(bytes), PyBytes_GET_SIZE(bytes),
2263 Py_DECREF(bytes);
2758 /* bytes object */
2887 bytes. */
3115 "The amount of space in bytes that the array would use in\n"
3120 "The size in bytes of each element of the memoryview.");
3131 "A tuple of ndim integers giving the size in bytes to access\n"