Home
last modified time | relevance | path

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

123456

/external/rust/crates/byteorder/
DREADME.md4 …d status](https://api.travis-ci.org/BurntSushi/byteorder.svg)](https://travis-ci.org/BurntSushi/by…
5 [![](http://meritbadge.herokuapp.com/byteorder)](https://crates.io/crates/byteorder)
12 https://docs.rs/byteorder
18 [crates.io](https://crates.io/crates/byteorder). Add it to your `Cargo.toml`
23 byteorder = "1"
30 extern crate byteorder;
32 use byteorder::{ReadBytesExt, WriteBytesExt, BigEndian, LittleEndian};
39 use byteorder::{BigEndian, ReadBytesExt};
55 byteorder = { version = "1", default-features = false }
DCHANGELOG.md46 This patch release removes the use of `feature(i128_type)` from byteorder,
47 since it has been stabilized. We leave byteorder's `i128` feature in place
67 The most prominent change in this release of `byteorder` is the removal of
70 [#103](https://github.com/BurntSushi/byteorder/issues/103)
73 * [BUG #102](https://github.com/BurntSushi/byteorder/issues/102):
75 * [BUG #103](https://github.com/BurntSushi/byteorder/issues/103):
81 This release of `byteorder` features a number of fixes and improvements, mostly
83 [Litz Blitz evaluation](https://public.etherpad-mozilla.org/p/rust-crate-eval-byteorder).
87 * [FEATURE #63](https://github.com/BurntSushi/byteorder/issues/63):
90 * [FEATURE #65](https://github.com/BurntSushi/byteorder/issues/65):
[all …]
DCargo.toml.orig2 name = "byteorder"
6 documentation = "https://docs.rs/byteorder"
7 homepage = "https://github.com/BurntSushi/byteorder"
8 repository = "https://github.com/BurntSushi/byteorder"
17 name = "byteorder"
38 travis-ci = { repository = "BurntSushi/byteorder" }
DCargo.toml14 name = "byteorder"
20 homepage = "https://github.com/BurntSushi/byteorder"
21 documentation = "https://docs.rs/byteorder"
26 repository = "https://github.com/BurntSushi/byteorder"
31 name = "byteorder"
48 repository = "BurntSushi/byteorder"
/external/u-boot/board/synopsys/hsdk/
Dheaderize-hsdk.py86 file.write(arc_id.to_bytes(2, byteorder='little'))
87 file.write(uboot_img_size.to_bytes(4, byteorder='little'))
88 file.write(check_sum.to_bytes(1, byteorder='little'))
89 file.write(image_copy_adr.to_bytes(4, byteorder='little'))
90 file.write(magic1.to_bytes(5, byteorder='big'))
91 file.write(jump_address.to_bytes(4, byteorder='little'))
92 for i in range(12): file.write(0xFF.to_bytes(1, byteorder='little'))
93 for byte in magic2: file.write(byte.to_bytes(36, byteorder='big'))
95 file.write(0xFF.to_bytes(1, byteorder='little'))
96 file.write(flash_address.to_bytes(4, byteorder='little'))
[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/Lib/encodings/
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 …]
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 …]
/external/u-boot/board/synopsys/axs10x/
Dheaderize-axs.py98 jmpchk_sum = sum(jump_address.to_bytes(4, byteorder='big'))
106 file.write(arc_id.to_bytes(2, byteorder='little'))
107 file.write(uboot_img_size.to_bytes(4, byteorder='little'))
108 file.write(check_sum.to_bytes(1, byteorder='little'))
109 file.write(image_copy_adr.to_bytes(4, byteorder='little'))
110 file.write(magic1.to_bytes(5, byteorder='big'))
111 for i in range(16): file.write(0x00.to_bytes(1, byteorder='little'))
112 for byte in magic2: file.write(byte.to_bytes(36, byteorder='big'))
114 file.write(0x00.to_bytes(1, byteorder='little'))
116 file.write(jump_address.to_bytes(4, byteorder='little'))
/external/python/cpython3/Modules/
D_codecsmodule.c305 int byteorder = 0; in _codecs_utf_16_decode_impl() local
309 errors, &byteorder, in _codecs_utf_16_decode_impl()
327 int byteorder = -1; in _codecs_utf_16_le_decode_impl() local
331 errors, &byteorder, in _codecs_utf_16_le_decode_impl()
349 int byteorder = 1; in _codecs_utf_16_be_decode_impl() local
353 errors, &byteorder, in _codecs_utf_16_be_decode_impl()
376 const char *errors, int byteorder, int final) in _codecs_utf_16_ex_decode_impl() argument
383 errors, &byteorder, in _codecs_utf_16_ex_decode_impl()
387 return Py_BuildValue("Nni", decoded, consumed, byteorder); in _codecs_utf_16_ex_decode_impl()
403 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/pybind11/tests/
Dtest_numpy_dtypes.py25 from sys import byteorder
26 e = '<' if byteorder == 'little' else '>'
39 from sys import byteorder
41 np.dtype('longdouble').itemsize, e='<' if byteorder == 'little' else '>')
95 from sys import byteorder
96 e = '<' if byteorder == 'little' else '>'
212 from sys import byteorder
213 e = '<' if byteorder == 'little' else '>'
236 from sys import byteorder
237 e = '<' if byteorder == 'little' else '>'
[all …]
/external/fonttools/Lib/fontTools/ttLib/tables/
DG__l_o_c.py35 if sys.byteorder != "big": self.locations.byteswap()
39 if sys.byteorder != "big": self.attribIds.byteswap()
45 if sys.byteorder != "big": self.locations.byteswap()
47 if sys.byteorder != "big": self.locations.byteswap()
49 if sys.byteorder != "big": self.attribIds.byteswap()
51 if sys.byteorder != "big": self.attribIds.byteswap()
DG_P_K_G_.py28 if sys.byteorder != "big": GMAPoffsets.byteswap()
38 if sys.byteorder != "big": glyphletOffsets.byteswap()
59 if sys.byteorder != "big": gmapArray.byteswap()
67 if sys.byteorder != "big": glyphletArray.byteswap()
DT_S_I__5.py21 if sys.byteorder != "big": a.byteswap()
31 if sys.byteorder != "big": a.byteswap()
/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/cpython3/Objects/clinic/
Dlongobject.c.h193 int_to_bytes_impl(PyObject *self, Py_ssize_t length, PyObject *byteorder,
205 PyObject *byteorder; in int_to_bytes() local
236 byteorder = args[1]; in int_to_bytes()
245 return_value = int_to_bytes_impl(self, length, byteorder, is_signed); in int_to_bytes()
276 PyObject *byteorder, int is_signed);
287 PyObject *byteorder; in int_from_bytes() local
302 byteorder = args[1]; in int_from_bytes()
311 return_value = int_from_bytes_impl(type, bytes_obj, byteorder, is_signed); in int_from_bytes()
/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/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/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.py50 if sys.byteorder != 'big':
77 if sys.byteorder != 'big':
104 if sys.byteorder != 'big':
/external/python/cpython3/Lib/ctypes/
D_endian.py41 if sys.byteorder == "little":
51 elif sys.byteorder == "big":
/external/python/cpython2/Lib/ctypes/
D_endian.py41 if sys.byteorder == "little":
51 elif sys.byteorder == "big":

123456