Home
last modified time | relevance | path

Searched refs:byteorder (Results 1 – 25 of 102) sorted by relevance

12345

/external/python/cpython3/Lib/encodings/
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 …]
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 …]
/external/python/cpython2/Lib/encodings/
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 …]
Dutf_16.py26 if sys.byteorder == 'little':
48 if sys.byteorder == 'little':
60 (output, consumed, byteorder) = \
62 if byteorder == -1:
64 elif byteorder == 1:
87 if sys.byteorder == 'little':
105 (object, consumed, byteorder) = \
107 if byteorder == -1:
109 elif byteorder == 1:
/external/python/cpython3/Modules/
D_codecsmodule.c338 int byteorder = 0; in _codecs_utf_16_decode_impl() local
342 errors, &byteorder, in _codecs_utf_16_decode_impl()
360 int byteorder = -1; in _codecs_utf_16_le_decode_impl() local
364 errors, &byteorder, in _codecs_utf_16_le_decode_impl()
382 int byteorder = 1; in _codecs_utf_16_be_decode_impl() local
386 errors, &byteorder, in _codecs_utf_16_be_decode_impl()
409 const char *errors, int byteorder, int final) in _codecs_utf_16_ex_decode_impl() argument
416 errors, &byteorder, in _codecs_utf_16_ex_decode_impl()
420 return Py_BuildValue("Nni", decoded, consumed, byteorder); in _codecs_utf_16_ex_decode_impl()
436 int byteorder = 0; in _codecs_utf_32_decode_impl() local
[all …]
/external/python/cpython2/Modules/
D_codecsmodule.c284 int byteorder = 0; in utf_16_decode() local
294 &byteorder, final ? NULL : &consumed); in utf_16_decode()
307 int byteorder = -1; in utf_16_le_decode() local
318 &byteorder, final ? NULL : &consumed); in utf_16_le_decode()
331 int byteorder = 1; in utf_16_be_decode() local
342 &byteorder, final ? NULL : &consumed); in utf_16_be_decode()
363 int byteorder = 0; in utf_16_ex_decode() local
369 &pbuf, &errors, &byteorder, &final)) in utf_16_ex_decode()
373 &byteorder, final ? NULL : &consumed); in utf_16_ex_decode()
377 tuple = Py_BuildValue("Oni", unicode, consumed, byteorder); in utf_16_ex_decode()
[all …]
/external/python/cpython2/Lib/test/
Dtest_wave.py50 if sys.byteorder != 'big':
53 if sys.byteorder == 'big':
83 if sys.byteorder != 'big':
110 if sys.byteorder != 'big':
113 if sys.byteorder == 'big':
Dtest_struct.py10 ISBIGENDIAN = sys.byteorder == "big"
161 for byteorder in ('=', '<', '>', '!'):
162 format = byteorder+code
168 for byteorder in ['', '@']:
169 signed_size = struct.calcsize(byteorder + format_pair[0])
170 unsigned_size = struct.calcsize(byteorder + format_pair[1])
356 for byteorder in byteorders:
357 if (byteorder in ('', '@') and code in ('q', 'Q') and
360 format = byteorder+code
/external/python/cpython2/Lib/ctypes/test/
Dtest_byteswap.py19 print >> sys.stderr, sys.byteorder
26 if sys.byteorder == "little":
53 if sys.byteorder == "little":
81 if sys.byteorder == "little":
109 if sys.byteorder == "little":
127 if sys.byteorder == "little":
154 if sys.byteorder == "little":
222 if sys.byteorder == "little":
240 if sys.byteorder == "little":
268 if sys.byteorder == "little":
/external/python/cpython3/Lib/test/
Dtest_struct.py11 ISBIGENDIAN = sys.byteorder == "big"
18 for byteorder in byteorders:
19 if (byteorder not in ('', '@') and code in ('n', 'N')):
21 yield code, byteorder
144 for code, byteorder in iter_integer_formats(('=', '<', '>', '!')):
145 format = byteorder+code
152 for byteorder in '', '@':
153 signed_size = struct.calcsize(byteorder + format_pair[0])
154 unsigned_size = struct.calcsize(byteorder + format_pair[1])
177 self.byteorder = format[:-1]
[all …]
Dtest_wave.py48 if sys.byteorder != 'big':
75 if sys.byteorder != 'big':
102 if sys.byteorder != 'big':
/external/python/cpython3/Lib/ctypes/test/
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":
174 if sys.byteorder == "little":
242 if sys.byteorder == "little":
260 if sys.byteorder == "little":
288 if sys.byteorder == "little":
/external/fonttools/Lib/fontTools/ttLib/tables/
D_h_m_t_x.py24 if sys.byteorder != "big":
31 if sys.byteorder != "big":
66 if sys.byteorder != "big":
71 if sys.byteorder != "big":
DG_P_K_G_.py28 if sys.byteorder != "big":
39 if sys.byteorder != "big":
62 if sys.byteorder != "big":
71 if sys.byteorder != "big":
DT_S_I__5.py16 if sys.byteorder != "big":
27 if sys.byteorder != "big":
D_c_v_t.py13 if sys.byteorder != "big":
19 if sys.byteorder != "big":
D_l_o_c_a.py20 if sys.byteorder != "big":
45 if sys.byteorder != "big":
D_p_o_s_t.py87 if sys.byteorder != "big":
134 if sys.byteorder != "big":
172 if sys.byteorder != "big":
190 if sys.byteorder != "big":
/external/python/cpython3/Modules/clinic/
D_codecsmodule.c.h428 const char *errors, int byteorder, int final);
436 int byteorder = 0; in _codecs_utf_16_ex_decode() local
440 &data, &errors, &byteorder, &final)) { in _codecs_utf_16_ex_decode()
443 return_value = _codecs_utf_16_ex_decode_impl(module, &data, errors, byteorder, final); in _codecs_utf_16_ex_decode()
570 const char *errors, int byteorder, int final);
578 int byteorder = 0; in _codecs_utf_32_ex_decode() local
582 &data, &errors, &byteorder, &final)) { in _codecs_utf_32_ex_decode()
585 return_value = _codecs_utf_32_ex_decode_impl(module, &data, errors, byteorder, final); in _codecs_utf_32_ex_decode()
1016 const char *errors, int byteorder);
1024 int byteorder = 0; in _codecs_utf_16_encode() local
[all …]
/external/fonttools/Lib/fontTools/misc/
DmacCreatorType.py19 if sys.byteorder == "little":
31 if sys.byteorder == "little":
/external/python/cpython2/Lib/ctypes/
D_endian.py41 if sys.byteorder == "little":
51 elif sys.byteorder == "big":
/external/python/cpython3/Lib/ctypes/
D_endian.py41 if sys.byteorder == "little":
51 elif sys.byteorder == "big":
/external/tensorflow/tensorflow/python/framework/
Dtensor_util_test.py52 if sys.byteorder == "big":
70 if sys.byteorder == "big":
88 if sys.byteorder == "big":
107 if sys.byteorder == "big":
125 if sys.byteorder == "big":
143 if sys.byteorder == "big":
171 if sys.byteorder == "big":
208 if sys.byteorder == "big":
281 if sys.byteorder == "big":
362 if sys.byteorder == "big":
[all …]
/external/python/cpython2/Doc/c-api/
Dunicode.rst529 …PyObject* PyUnicode_DecodeUTF32(const char *s, Py_ssize_t size, const char *errors, int *byteorder)
535 If *byteorder* is non-*NULL*, the decoder starts decoding using the given byte
538 *byteorder == -1: little endian
539 *byteorder == 0: native order
540 *byteorder == 1: big endian
542 If ``*byteorder`` is zero, and the first four bytes of the input data are a
544 not copied into the resulting Unicode string. If ``*byteorder`` is ``-1`` or
547 After completion, *\*byteorder* is set to the current byte order at the end
552 If *byteorder* is *NULL*, the codec starts in native order mode.
559 …eUTF32Stateful(const char *s, Py_ssize_t size, const char *errors, int *byteorder, Py_ssize_t *con…
[all …]
/external/python/cpython2/Include/
Dunicodeobject.h802 int *byteorder /* pointer to byteorder to use
811 int *byteorder, /* pointer to byteorder to use
844 int byteorder /* byteorder to use 0=BOM+native;-1=LE,1=BE */
876 int *byteorder /* pointer to byteorder to use
885 int *byteorder, /* pointer to byteorder to use
922 int byteorder /* byteorder to use 0=BOM+native;-1=LE,1=BE */

12345