Lines Matching defs:buf
166 ascii_buffer_converter(PyObject *arg, Py_buffer *buf)
169 PyBuffer_Release(buf);
181 buf->buf = (void *) PyUnicode_1BYTE_DATA(arg);
182 buf->len = PyUnicode_GET_LENGTH(arg);
183 buf->obj = NULL;
186 if (PyObject_GetBuffer(arg, buf, PyBUF_SIMPLE) != 0) {
192 if (!PyBuffer_IsContiguous(buf, 'C')) {
196 PyBuffer_Release(buf);
226 ascii_data = data->buf;
325 bin_data = data->buf;
393 const unsigned char *ascii_data = data->buf;
542 bin_data = data->buf;
612 bin_data = data->buf;
778 unsigned char *buf = data->buf;
785 crc = crc32(crc, buf, UINT_MAX);
786 buf += (size_t) UINT_MAX;
789 crc = crc32(crc, buf, (unsigned int)len);
792 crc = crc32(crc, data->buf, (unsigned int)data->len);
798 const unsigned char *bin_data = data->buf;
844 return _Py_strhex_bytes_with_sep((const char *)data->buf, data->len,
862 return _Py_strhex_bytes_with_sep((const char *)data->buf, data->len,
889 argbuf = hexstr->buf;
971 ascii_data = data->buf;
1080 databuf = data->buf;