Home
last modified time | relevance | path

Searched refs:source_bytes (Results 1 – 12 of 12) sorted by relevance

/external/sfntly/cpp/src/test/
Dopen_type_data_test.cc46 ByteVector source_bytes(1024); in TestOTFCopy() local
47 for (size_t i = 0; i < source_bytes.size(); ++i) { in TestOTFCopy()
48 source_bytes[i] = (uint8_t)(i & 0xff); in TestOTFCopy()
50 ByteArrayPtr source_array = new MemoryByteArray(&(source_bytes[0]), 1024); in TestOTFCopy()
60 EXPECT_TRUE(std::equal(source_bytes.begin(), source_bytes.end(), in TestOTFCopy()
/external/python/cpython3/Lib/
Dpy_compile.py142 source_bytes = loader.get_data(file)
144 code = loader.source_to_code(source_bytes, dfile or file,
165 source_hash = importlib.util.source_hash(source_bytes)
Dzipimport.py603 source_bytes = _get_pyc_source(self, fullpath)
604 if source_bytes is not None:
607 source_bytes,
/external/python/cpython3/Lib/importlib/
D_bootstrap_external.py612 def decode_source(source_bytes): argument
618 source_bytes_readline = _io.BytesIO(source_bytes).readline
621 return newline_decoder.decode(source_bytes.decode(encoding[0]))
835 source_bytes = self.get_data(path)
839 return decode_source(source_bytes)
858 source_bytes = None
891 source_bytes = self.get_data(source_path)
894 source_bytes,
914 if source_bytes is None:
915 source_bytes = self.get_data(source_path)
[all …]
Dutil.py22 def source_hash(source_bytes): argument
24 return _imp.source_hash(_RAW_MAGIC_NUMBER, source_bytes)
/external/swiftshader/third_party/llvm-7.0/llvm/bindings/python/llvm/
Ddisassembler.py122 source_bytes = c_char_p(source)
126 buf = cast(source_bytes, POINTER(c_ubyte * len(source))).contents
/external/llvm/bindings/python/llvm/
Ddisassembler.py122 source_bytes = c_char_p(source)
126 buf = cast(source_bytes, POINTER(c_ubyte * len(source))).contents
/external/python/cpython2/Lib/test/
Dtest_memoryview.py19 source_bytes = b"abcdef" variable in AbstractMemoryTests
23 return self.source_bytes
289 source_bytes = b"XabcdefY" variable in BaseMemorySliceTests
306 source_bytes = b"XabcdefY" variable in BaseMemorySliceSliceTests
/external/python/cpython3/Lib/test/test_importlib/
Dtest_util.py24 source_bytes = self.source.encode('utf-8')
25 self.assertEqual(self.util.decode_source(source_bytes), self.source)
29 source_bytes = source.encode('latin-1')
30 assert source_bytes != source.encode('utf-8')
31 self.assertEqual(self.util.decode_source(source_bytes), source)
35 source_bytes = source.encode('utf-8')
36 self.assertEqual(self.util.decode_source(source_bytes),
/external/python/cpython3/Lib/test/
Dtest_memoryview.py19 source_bytes = b"abcdef" variable in AbstractMemoryTests
23 return self.source_bytes
437 source_bytes = b"XabcdefY" variable in BaseMemorySliceTests
454 source_bytes = b"XabcdefY" variable in BaseMemorySliceSliceTests
/external/v8/src/wasm/
Dwasm-objects.cc1320 auto source_bytes = wire_bytes.SubVector(segment.source.offset(), in InitDataSegmentArrays() local
1323 reinterpret_cast<Address>(source_bytes.begin()); in InitDataSegmentArrays()
1328 segment.active ? 0 : source_bytes.length(); in InitDataSegmentArrays()
/external/python/cpython3/Doc/library/
Dimportlib.rst1422 .. function:: decode_source(source_bytes)
1566 .. function:: source_hash(source_bytes)
1568 Return the hash of *source_bytes* as bytes. A hash-based ``.pyc`` file embeds