/external/python/cpython3/Lib/ctypes/test/ |
D | test_pickling.py | 31 self.assertEqual(memoryview(src).tobytes(), 32 memoryview(dst).tobytes()) 49 self.assertEqual(memoryview(y).tobytes(), 50 memoryview(x).tobytes())
|
/external/python/cpython2/Lib/ctypes/test/ |
D | test_pickling.py | 31 self.assertEqual(memoryview(src).tobytes(), 32 memoryview(dst).tobytes()) 49 self.assertEqual(memoryview(y).tobytes(), 50 memoryview(x).tobytes())
|
/external/fonttools/Tests/ttLib/tables/ |
D | T_S_I__1_test.py | 1 from fontTools.misc.py23 import tobytes 109 data = tobytes(content) 125 data = tobytes(content) 146 data = tobytes(foo_content + bar_content) 164 data = tobytes(ppgm_content + cvt_content)
|
/external/fonttools/Lib/fontTools/misc/ |
D | py23.py | 73 def tobytes(s, encoding="ascii", errors="strict"): function 109 def tobytes(self): member in Tag 114 return tobytes(joiner).join(tobytes(item) for item in iterable)
|
D | sstruct.py | 49 from fontTools.misc.py23 import tobytes, tostr 72 value = tobytes(value) 80 data = tobytes(data)
|
D | textTools.py | 4 from fontTools.misc.py23 import bytechr, byteord, bytesjoin, strjoin, tobytes 92 data = tobytes(data)
|
D | testTools.py | 10 from fontTools.misc.py23 import tobytes 30 xml += tobytes(xmlSnippet, 'utf-8') 32 xml += b"".join(tobytes(s, 'utf-8') for s in xmlSnippet)
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | decode_raw_op_test.py | 88 result, parsing_ops.decode_raw([result.tobytes()], dtypes.float16)) 93 parsing_ops.decode_raw([result.tobytes()], dtypes.bool)) 98 result, parsing_ops.decode_raw([result.tobytes()], dtypes.complex64)) 103 result, parsing_ops.decode_raw([result.tobytes()], dtypes.complex128))
|
D | bitcast_op_test.py | 37 buff_after = memoryview(out).tobytes() 38 buff_before = memoryview(x).tobytes()
|
/external/fonttools/Tests/misc/ |
D | xmlWriter_test.py | 1 from fontTools.misc.py23 import bytesjoin, tobytes 7 linesep = tobytes(os.linesep) 119 linesep = tobytes(os.linesep) if nls is None else tobytes(nls)
|
/external/fonttools/Lib/fontTools/ttLib/tables/ |
D | T_S_I_V_.py | 1 from fontTools.misc.py23 import strjoin, tobytes, tostr 20 self.data = tobytes("\r".join(lines[1:-1]))
|
D | asciiTable.py | 1 from fontTools.misc.py23 import strjoin, tobytes, tostr 21 self.data = tobytes("\n".join(lines[1:-1]))
|
D | T_S_I__1.py | 7 from fontTools.misc.py23 import strjoin, tobytes, tostr 93 text = tobytes(self.glyphPrograms[name], encoding="utf-8") 109 text = tobytes(self.extraPrograms[name], encoding="utf-8")
|
D | _l_t_a_g.py | 1 from fontTools.misc.py23 import bytesjoin, tobytes 45 dataList.append(tobytes(stringPool))
|
D | G__l_o_c.py | 44 data += self.locations.tobytes() 48 data += self.attribIds.tobytes()
|
D | _p_o_s_t.py | 1 from fontTools.misc.py23 import bytechr, byteord, tobytes, tostr 174 return struct.pack(">H", numGlyphs) + indices.tobytes() + packPStrings(extraNames) 191 return indices.tobytes() 269 data = data + bytechr(len(s)) + tobytes(s, encoding="latin1")
|
D | S_I_N_G_.py | 1 from fontTools.misc.py23 import bytechr, byteord, tobytes, tostr 67 data = data + tobytes(self.baseGlyphName)
|
D | D_S_I_G_.py | 1 from fontTools.misc.py23 import bytesjoin, strjoin, tobytes, tostr 130 self.pkcs7 = base64.b64decode(tobytes(strjoin(filter(pem_spam, content))))
|
/external/protobuf/python/google/protobuf/internal/ |
D | decoder.py | 196 tag_bytes = buffer[start:pos].tobytes() 324 float_bytes = buffer[pos:new_pos].tobytes() 368 double_bytes = buffer[pos:new_pos].tobytes() 423 (tag_bytes, buffer[value_start_pos:pos].tobytes())) 461 (tag_bytes, buffer[pos:new_pos].tobytes())) 499 (tag_bytes, buffer[value_start_pos:pos].tobytes())) 546 byte_str = memview.tobytes() 616 value.append(buffer[pos:new_pos].tobytes()) 629 field_dict[key] = buffer[pos:new_pos].tobytes() 814 (MESSAGE_SET_ITEM_TAG, buffer[message_set_item_start:pos].tobytes())) [all …]
|
/external/fonttools/Lib/fontTools/ufoLib/ |
D | plistlib.py | 6 from fontTools.misc.py23 import tobytes 41 return loads(tobytes(data, encoding="utf-8"), use_builtin_types=False)
|
/external/fonttools/Tests/svgLib/path/ |
D | path_test.py | 1 from fontTools.misc.py23 import tobytes 42 tmp.write(tobytes(SVG_DATA))
|
/external/python/cpython3/Lib/test/ |
D | test_array.py | 431 self.assertRaises(TypeError, a.tobytes, 42) 434 b.frombytes(a.tobytes()) 435 c = array.array(self.typecode, bytearray(a.tobytes())) 972 expected = m.tobytes() 973 self.assertEqual(a.tobytes(), expected) 974 self.assertEqual(a.tobytes()[0], expected[0]) 979 self.assertEqual(m.tobytes(), expected) 981 self.assertEqual(m.tobytes(), expected) 983 self.assertEqual(m.tobytes(), expected) 985 self.assertEqual(m.tobytes(), expected) [all …]
|
D | test_buffer.py | 665 mem = exporter.tobytes() 736 x = nd.tobytes() 817 rep = result.tolist() if fmt else result.tobytes() 848 self.assertEqual(result.tobytes(), b) 880 self.assertEqual(contig.tobytes(), b) 903 contig_bytes = memoryview(result).tobytes() 906 contig_bytes = memoryview(result).tobytes(order=None) 909 contig_bytes = memoryview(result).tobytes(order='C') 924 contig_bytes = memoryview(result).tobytes(order='F') 939 contig_bytes = memoryview(result).tobytes(order='A') [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_struct.py | 436 def test_pack_into(self, cls=bytearray, tobytes=str): argument 444 from_buf = tobytes(writable_buf)[:len(test_string)] 449 from_buf = tobytes(writable_buf)[:len(test_string)+10] 466 tobytes=array.array.tostring) 471 tobytes=memoryview.tobytes)
|
/external/mesa3d/.gitlab-ci/tracie/ |
D | image_checksum.py | 35 md5 = hashlib.md5(Image.open(args.imagefile).tobytes())
|