Lines Matching refs:bytelength
1061 get_standard_encoding(const char *encoding, int *bytelength) in get_standard_encoding() argument
1070 *bytelength = 3; in get_standard_encoding()
1075 *bytelength = 2; in get_standard_encoding()
1094 *bytelength = 4; in get_standard_encoding()
1113 *bytelength = 3; in get_standard_encoding()
1129 int bytelength; in PyCodec_SurrogatePassErrors() local
1152 code = get_standard_encoding(encoding, &bytelength); in PyCodec_SurrogatePassErrors()
1161 if (end - start > PY_SSIZE_T_MAX / bytelength) in PyCodec_SurrogatePassErrors()
1162 end = start + PY_SSIZE_T_MAX / bytelength; in PyCodec_SurrogatePassErrors()
1163 res = PyBytes_FromStringAndSize(NULL, bytelength*(end-start)); in PyCodec_SurrogatePassErrors()
1231 code = get_standard_encoding(encoding, &bytelength); in PyCodec_SurrogatePassErrors()
1243 if (PyBytes_GET_SIZE(object) - start >= bytelength) { in PyCodec_SurrogatePassErrors()
1277 return Py_BuildValue("(Nn)", res, start + bytelength); in PyCodec_SurrogatePassErrors()