/third_party/python/Lib/encodings/ |
H A D | utf_16.py | 26 if sys.byteorder == 'little': 48 if sys.byteorder == 'little': 60 (output, consumed, byteorder) = \ 62 if byteorder == -1: 64 elif byteorder == 1: 85 addstate = int((sys.byteorder == "big") != 95 if sys.byteorder == "big" 99 if sys.byteorder == "big" 116 if sys.byteorder == 'little': 134 (object, consumed, byteorder) [all...] |
H A D | utf_32.py | 21 if sys.byteorder == 'little': 43 if sys.byteorder == 'little': 55 (output, consumed, byteorder) = \ 57 if byteorder == -1: 59 elif byteorder == 1: 80 addstate = int((sys.byteorder == "big") != 90 if sys.byteorder == "big" 94 if sys.byteorder == "big" 111 if sys.byteorder == 'little': 129 (object, consumed, byteorder) [all...] |
/third_party/python/Objects/clinic/ |
H A D | longobject.c.h | 229 "to_bytes($self, /, length=1, byteorder=\'big\', *, signed=False)\n" 238 " byteorder\n" 239 " The byte order used to represent the integer. If byteorder is \'big\',\n" 241 " byteorder is \'little\', the most significant byte is at the end of the\n" 243 " `sys.byteorder\' as the byte order value. Default is to use \'big\'.\n" 253 int_to_bytes_impl(PyObject *self, Py_ssize_t length, PyObject *byteorder, 260 static const char * const _keywords[] = {"length", "byteorder", "signed", NULL}; in int_to_bytes() 265 PyObject *byteorder = NULL; in int_to_bytes() local 294 _PyArg_BadArgument("to_bytes", "argument 'byteorder'", "str", args[1]); in int_to_bytes() 300 byteorder in int_to_bytes() 356 PyObject *byteorder = NULL; int_from_bytes() local [all...] |
/third_party/python/Lib/ctypes/test/ |
H A D | test_byteswap.py | 19 print(sys.byteorder, file=sys.stderr) 46 if sys.byteorder == "little": 73 if sys.byteorder == "little": 101 if sys.byteorder == "little": 129 if sys.byteorder == "little": 147 if sys.byteorder == "little": 198 class T(BigEndianStructure if sys.byteorder == "little" else LittleEndianStructure): 236 if sys.byteorder == "little": 254 if sys.byteorder == "little": 281 if sys.byteorder [all...] |
H A D | test_unaligned_structures.py | 8 if sys.byteorder == "little":
|
H A D | test_cast.py | 17 if sys.byteorder == "little":
|
H A D | test_pep3118.py | 5 if sys.byteorder == "little":
|
/third_party/python/Lib/test/ |
H A D | test_struct.py | 15 ISBIGENDIAN = sys.byteorder == "big" 22 for byteorder in byteorders: 23 if (byteorder not in ('', '@') and code in ('n', 'N')): 25 yield code, byteorder 148 for code, byteorder in iter_integer_formats(('=', '<', '>', '!')): 149 format = byteorder+code 156 for byteorder in '', '@': 157 signed_size = struct.calcsize(byteorder + format_pair[0]) 158 unsigned_size = struct.calcsize(byteorder + format_pair[1]) 181 self.byteorder [all...] |
H A D | test_wave.py | 49 if sys.byteorder != 'big': 76 if sys.byteorder != 'big': 103 if sys.byteorder != 'big':
|
H A D | test_long.py | 1211 def check(tests, byteorder, signed=False): 1212 def equivalent_python(n, length, byteorder, signed=False): 1213 if byteorder == 'little': 1215 elif byteorder == 'big': 1222 test.to_bytes(len(expected), byteorder, signed=signed), 1226 "failed to convert {} with byteorder={} and signed={}" 1227 .format(test, byteorder, signed)) from err 1230 if len(expected) == 1 and byteorder == 'big' and not signed: 1241 test, len(expected), byteorder, signed=signed), 1247 "conversion of {0} with byteorder byteorde [all...] |
H A D | test_hash.py | 259 if sys.byteorder == 'little': 262 assert(sys.byteorder == 'big')
|
H A D | test_sunau.py | 120 if sys.byteorder != 'big':
|
H A D | test_ossaudiodev.py | 24 if sys.byteorder == "little":
|
/third_party/python/Lib/ctypes/ |
H A D | _endian.py | 43 if sys.byteorder == "little": 60 elif sys.byteorder == "big": 78 raise RuntimeError("Invalid byteorder")
|
/third_party/python/Modules/clinic/ |
H A D | _codecsmodule.c.h | 698 "utf_16_ex_decode($module, data, errors=None, byteorder=0, final=False,\n" 708 const char *errors, int byteorder, int final); 716 int byteorder = 0; in _codecs_utf_16_ex_decode() local 753 byteorder = _PyLong_AsInt(args[2]); in _codecs_utf_16_ex_decode() 754 if (byteorder == -1 && PyErr_Occurred()) { in _codecs_utf_16_ex_decode() 765 return_value = _codecs_utf_16_ex_decode_impl(module, &data, errors, byteorder, final); in _codecs_utf_16_ex_decode() 987 "utf_32_ex_decode($module, data, errors=None, byteorder=0, final=False,\n" 997 const char *errors, int byteorder, int final); 1005 int byteorder = 0; in _codecs_utf_32_ex_decode() local 1042 byteorder in _codecs_utf_32_ex_decode() 1849 int byteorder = 0; _codecs_utf_16_encode() local 2031 int byteorder = 0; _codecs_utf_32_encode() local [all...] |
/third_party/node/tools/ |
H A D | getendian.py | 4 print(sys.byteorder)
|
/third_party/python/Include/ |
H A D | unicodeobject.h | 492 If byteorder is non-NULL, the decoder starts decoding using the 495 *byteorder == -1: little endian 496 *byteorder == 0: native order 497 *byteorder == 1: big endian 502 interpretation is done. After completion, *byteorder is set to the 505 If byteorder is NULL, the codec starts in native order mode. 513 int *byteorder /* pointer to byteorder to use 522 int *byteorder, /* pointer to byteorder t [all...] |
/third_party/alsa-utils/include/ |
H A D | bswap.h | 36 #include <sys/byteorder.h>
|
/third_party/alsa-lib/include/ |
H A D | bswap.h | 36 #include <sys/byteorder.h>
|
/third_party/alsa-lib/include/sound/ |
H A D | type_compat.h | 19 #include <sys/byteorder.h>
|
/third_party/node/tools/icu/ |
H A D | shrink-icu-src.py | 98 icu_endianness = sys.byteorder[0] # TODO(srl295): EBCDIC should be 'e'
|
/third_party/python/Tools/tz/ |
H A D | zdump.py | 27 if sys.byteorder != 'big':
|
/third_party/python/Lib/ |
H A D | wave.py | 363 if self._sampwidth != 1 and sys.byteorder == 'big': 551 if self._sampwidth != 1 and sys.byteorder == 'big':
|
/third_party/libunwind/libunwind/doc/ |
H A D | unw_create_addr_space.tex | 15 \Type{unw\_addr\_space\_t} \Func{unw\_create\_addr\_space}(\Type{unw\_accessors\_t~*}\Var{ap}, \Type{int} \Var{byteorder});\\ 21 passed via the \Var{ap} pointer and the specified \Var{byteorder}. 23 \Var{byteorder} can be set to 0 to request the default byte-order of 25 \Var{byteorder} can be set to any constant defined by
|
/third_party/icu/tools/scripts/ |
H A D | bldicures.py | 43 endian=sys.byteorder
|