Home
last modified time | relevance | path

Searched refs:byteorder (Results 1 - 25 of 57) sorted by relevance

123

/third_party/python/Lib/encodings/
H A Dutf_16.py26 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 Dutf_32.py21 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 Dlongobject.c.h229 "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 Dtest_byteswap.py19 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 Dtest_unaligned_structures.py8 if sys.byteorder == "little":
H A Dtest_cast.py17 if sys.byteorder == "little":
H A Dtest_pep3118.py5 if sys.byteorder == "little":
/third_party/python/Lib/test/
H A Dtest_struct.py15 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 Dtest_wave.py49 if sys.byteorder != 'big':
76 if sys.byteorder != 'big':
103 if sys.byteorder != 'big':
H A Dtest_long.py1211 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 Dtest_hash.py259 if sys.byteorder == 'little':
262 assert(sys.byteorder == 'big')
H A Dtest_sunau.py120 if sys.byteorder != 'big':
H A Dtest_ossaudiodev.py24 if sys.byteorder == "little":
/third_party/python/Lib/ctypes/
H A D_endian.py43 if sys.byteorder == "little":
60 elif sys.byteorder == "big":
78 raise RuntimeError("Invalid byteorder")
/third_party/python/Modules/clinic/
H A D_codecsmodule.c.h698 "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 Dgetendian.py4 print(sys.byteorder)
/third_party/python/Include/
H A Dunicodeobject.h492 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 Dbswap.h36 #include <sys/byteorder.h>
/third_party/alsa-lib/include/
H A Dbswap.h36 #include <sys/byteorder.h>
/third_party/alsa-lib/include/sound/
H A Dtype_compat.h19 #include <sys/byteorder.h>
/third_party/node/tools/icu/
H A Dshrink-icu-src.py98 icu_endianness = sys.byteorder[0] # TODO(srl295): EBCDIC should be 'e'
/third_party/python/Tools/tz/
H A Dzdump.py27 if sys.byteorder != 'big':
/third_party/python/Lib/
H A Dwave.py363 if self._sampwidth != 1 and sys.byteorder == 'big':
551 if self._sampwidth != 1 and sys.byteorder == 'big':
/third_party/libunwind/libunwind/doc/
H A Dunw_create_addr_space.tex15 \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 Dbldicures.py43 endian=sys.byteorder

Completed in 13 milliseconds

123