Lines Matching refs:nsize
5552 Py_ssize_t nsize, pos; in _PyUnicode_EncodeUTF32() local
5569 nsize = len + (byteorder == 0); in _PyUnicode_EncodeUTF32()
5570 v = PyBytes_FromStringAndSize(NULL, nsize * 4); in _PyUnicode_EncodeUTF32()
5668 nsize = (unsigned char*) out - (unsigned char*) PyBytes_AS_STRING(v); in _PyUnicode_EncodeUTF32()
5669 if (nsize != PyBytes_GET_SIZE(v)) in _PyUnicode_EncodeUTF32()
5670 _PyBytes_Resize(&v, nsize); in _PyUnicode_EncodeUTF32()
5887 Py_ssize_t nsize, pos; in _PyUnicode_EncodeUTF16() local
5915 nsize = len + pairs + (byteorder == 0); in _PyUnicode_EncodeUTF16()
5916 v = PyBytes_FromStringAndSize(NULL, nsize * 2); in _PyUnicode_EncodeUTF16()
6020 nsize = (unsigned char*) out - (unsigned char*) PyBytes_AS_STRING(v); in _PyUnicode_EncodeUTF16()
6021 if (nsize != PyBytes_GET_SIZE(v)) in _PyUnicode_EncodeUTF16()
6022 _PyBytes_Resize(&v, nsize); in _PyUnicode_EncodeUTF16()