Lines Matching defs:bytes

282     /* None of the bytes in the range 0x80-0xff can be decoded from the locale
490 /* Try conversion with mbrtwoc (C99), and escape non-decodable bytes. */
537 /* successfully converted some bytes */
559 is ASCII (i.e. escape all bytes > 128. This will still roundtrip
570 bytes are decoded as characters in range U+DC80..U+DCFF. If a byte sequence
571 can be decoded as a surrogate character, escape the bytes using the
632 surrogateescape error handler: undecodable bytes are decoded as characters
634 character, escape the bytes using the surrogateescape error handler instead
674 char *result = NULL, *bytes = NULL;
684 1. compute the length of the output buffer in bytes (size)
685 2. outputs the bytes */
696 if (bytes != NULL) {
697 *bytes++ = c - 0xdc00;
707 if (bytes != NULL) {
708 converted = wcstombs(bytes, buf, size);
716 if (bytes != NULL) {
717 bytes += converted;
726 *bytes = '\0';
740 bytes = result;
842 U+DC80..U+DCFF are converted to bytes 0x80..0xFF.
850 Use the Py_DecodeLocale() function to decode the bytes string back to a wide
1262 PyObject *bytes;
1265 bytes = PyUnicode_EncodeFSDefault(path);
1266 if (bytes == NULL)
1269 /* check for embedded null bytes */
1270 if (PyBytes_AsStringAndSize(bytes, &cpath, NULL) == -1) {
1271 Py_DECREF(bytes);
1276 Py_DECREF(bytes);
1694 PyObject *bytes;
1699 if (!PyUnicode_FSConverter(path, &bytes))
1701 path_bytes = PyBytes_AS_STRING(bytes);
1704 Py_DECREF(bytes);
1715 Py_DECREF(bytes);
1732 /* Read count bytes from fd into buf.
1734 On success, return the number of read bytes, it can be lower than count.
1735 If the current file offset is at or past the end of file, no bytes are read,
1808 binary and the length is greater than 66,000 bytes (or less,
1874 /* Write count bytes of buf into fd.
1876 On success, return the number of written bytes, it can be lower than count
1897 /* Write count bytes of buf into fd.
1899 * On success, return the number of written bytes, it can be lower than count