Lines Matching refs:Py_UNICODE
12 Py_UNICODE *buf;
59 Py_UNICODE *new_buf = NULL; in resize_buffer()
87 if (alloc > ((size_t)-1) / sizeof(Py_UNICODE)) in resize_buffer()
89 new_buf = (Py_UNICODE *)PyMem_Realloc(self->buf, in resize_buffer()
90 alloc * sizeof(Py_UNICODE)); in resize_buffer()
111 Py_UNICODE *str; in write_str()
164 (self->pos - self->string_size) * sizeof(Py_UNICODE)); in write_str()
169 memcpy(self->buf + self->pos, str, len * sizeof(Py_UNICODE)); in write_str()
217 Py_UNICODE *output; in stringio_read()
257 Py_UNICODE *start, *end, old_char; in _stringio_readline()
544 self->buf = (Py_UNICODE *)PyMem_Malloc(0); in stringio_new()
745 Py_UNICODE *buf = PyUnicode_AS_UNICODE(PyTuple_GET_ITEM(state, 0)); in stringio_setstate()
749 memcpy(self->buf, buf, bufsize * sizeof(Py_UNICODE)); in stringio_setstate()