/external/python/pyasn1/tests/compat/ |
test_integer.py | 24 assert 0 == integer.from_bytes(bytes([0]), signed=False) 27 assert -66051 == integer.from_bytes(bytes([254, 253, 253]), signed=True) 30 assert 66051 == integer.from_bytes(bytes([0, 1, 2, 3]), signed=False) 33 assert 0 == integer.from_bytes(bytes([])) 38 assert 0 == integer.from_bytes('\x00', signed=False) 41 assert -66051 == integer.from_bytes('\xfe\xfd\xfd', signed=True) 44 assert 66051 == integer.from_bytes('\x01\x02\x03', signed=False) 47 assert 0 == integer.from_bytes('')
|
/external/libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/ |
from_bytes.pass.cpp | 14 // wide_string from_bytes(char byte); 15 // wide_string from_bytes(const char* ptr); 16 // wide_string from_bytes(const byte_string& str); 17 // wide_string from_bytes(const char* first, const char* last); 40 std::wstring ws = myconv.from_bytes('a'); 42 ws = myconv.from_bytes(bs.c_str()); 44 ws = myconv.from_bytes(bs); 46 ws = myconv.from_bytes(bs.data(), bs.data() + bs.size()); 48 ws = myconv.from_bytes(""); 59 std::wstring ws = myconv.from_bytes('a') [all...] |
ctor_err_string.pass.cpp | 44 TEST_IGNORE_NODISCARD myconv.from_bytes('\xA5'); 59 TEST_IGNORE_NODISCARD myconv.from_bytes('\xA5'); 71 std::wstring ws = myconv.from_bytes('\xA5');
|
converted.pass.cpp | 43 std::wstring ws = myconv.from_bytes("\xE1\x80\x85"); 60 std::wstring ws = myconv.from_bytes("\xF1\x80\x80\x83");
|
/external/libcxx/test/libcxx/localization/locales/locale.convenience/conversions/conversions.string/ |
ctor_move.pass.cpp | 32 myconv.from_bytes("\xF1\x80\x80\x83");
|
/external/python/pyasn1/pyasn1/compat/ |
integer.py | 25 def from_bytes(octets, signed=False): function 98 def from_bytes(octets, signed=False): function 99 return int.from_bytes(bytes(octets), 'big', signed=signed)
|
/external/libcxx/test/support/ |
platform_support.h | 107 return std::wstring_convert<std::codecvt_utf8_utf16<wchar_t> >().from_bytes(
|
/external/python/cpython3/Lib/ |
hashlib.py | 219 from_bytes = int.from_bytes 223 rkey = int.from_bytes(prev, 'big') 227 rkey ^= from_bytes(prev, 'big')
|
base64.py | 160 from_bytes = int.from_bytes 163 c = from_bytes(s[i: i + 5], 'big')
|
random.py | 124 a = int.from_bytes(a, 'big') 679 return (int.from_bytes(_urandom(7), 'big') >> 3) * RECIP_BPF 688 x = int.from_bytes(_urandom(numbytes), 'big')
|
uuid.py | 171 int = int_.from_bytes(bytes, byteorder='big') 544 mac = int.from_bytes(bytes, 'big')
|
plistlib.py | 584 return tuple(int.from_bytes(data[i: i + size], 'big') 621 result = int.from_bytes(self._fp.read(1 << tokenL),
|
ipaddress.py | [all...] |
/external/python/cpython3/Lib/test/ |
test_long.py | [all...] |
test_call.py | 160 msg = r"^from_bytes\(\) takes at most 2 positional arguments \(3 given\)" 161 self.assertRaisesRegex(TypeError, msg, int.from_bytes, b'a', 'little', False) 340 (int.from_bytes, (b'\x01\x00', 'little'), 1), 363 (int.from_bytes, (b'\x01\x00',), {'byteorder': 'little'}, 1), 364 (int.from_bytes, (), {'bytes': b'\x01\x00', 'byteorder': 'little'}, 1),
|
test_bool.py | 329 self.assertIs(bool.from_bytes(b'\x00'*8, 'big'), False) 330 self.assertIs(bool.from_bytes(b'abcd', 'little'), True)
|
test_compileall.py | 552 self.assertEqual(int.from_bytes(data[4:8], 'little'), 0b11) 556 self.assertEqual(int.from_bytes(data[4:8], 'little'), 0b01)
|
/frameworks/av/media/mtp/ |
MtpStringBuffer.cpp | 36 return gConvert.from_bytes(input_str);
|
/external/python/httplib2/tests/ |
test_http.py | 102 reflected = tests.HttpRequest.from_bytes(content) 112 reflected = tests.HttpRequest.from_bytes(content) 124 reflected = tests.HttpRequest.from_bytes(content) 154 reflected = tests.HttpRequest.from_bytes(content) 164 reflected = tests.HttpRequest.from_bytes(content) 421 reflected = tests.HttpRequest.from_bytes(content) 439 reflected = tests.HttpRequest.from_bytes(content) 509 reflected = tests.HttpRequest.from_bytes(content) 519 reflected = tests.HttpRequest.from_bytes(content) 538 reflected = tests.HttpRequest.from_bytes(content [all...] |
__init__.py | 60 # crutch to enable HttpRequest.from_bytes 154 def from_bytes(cls, bs): member in class:HttpMessage 488 response = HttpResponse.from_bytes(response_bytes)
|
/external/python/cpython3/Lib/test/test_importlib/source/ |
test_file_loader.py | 266 self.assertEqual(int.from_bytes(data[4:8], 'little'), 0b11) 321 self.assertEqual(int.from_bytes(data[4:8], 'little'), 0b1) 352 self.assertEqual(int.from_bytes(data[4:8], 'little'), 0b1)
|
/art/runtime/gc/collector/ |
semi_space.cc | 261 const int64_t from_bytes = from_space_->GetBytesAllocated(); local 268 RecordFree(ObjectBytePair(from_objects - to_objects, from_bytes - to_bytes)); [all...] |
concurrent_copying.cc | 2634 const uint64_t from_bytes = region_space_->GetBytesAllocatedInFromSpace(); local [all...] |
/external/python/cpython3/Lib/importlib/ |
_bootstrap_external.py | 53 return int.from_bytes(int_bytes, 'little') 260 _RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c [all...] |
/external/python/pyasn1/pyasn1/codec/ber/ |
decoder.py | 10 from pyasn1.compat.integer import from_bytes 114 value = from_bytes(head, signed=True) [all...] |