Home
last modified time | relevance | path

Searched refs:tobytes (Results 1 – 25 of 99) sorted by relevance

1234

/external/python/cpython3/Lib/ctypes/test/
Dtest_pickling.py31 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/
Dtest_pickling.py31 self.assertEqual(memoryview(src).tobytes(),
32 memoryview(dst).tobytes())
49 self.assertEqual(memoryview(y).tobytes(),
50 memoryview(x).tobytes())
/external/fonttools/Tests/ttLib/tables/
DT_S_I__1_test.py1 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/
Dpy23.py73 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)
Dsstruct.py49 from fontTools.misc.py23 import tobytes, tostr
72 value = tobytes(value)
80 data = tobytes(data)
DtextTools.py4 from fontTools.misc.py23 import bytechr, byteord, bytesjoin, strjoin, tobytes
92 data = tobytes(data)
DtestTools.py10 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/
Ddecode_raw_op_test.py88 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))
Dbitcast_op_test.py37 buff_after = memoryview(out).tobytes()
38 buff_before = memoryview(x).tobytes()
/external/fonttools/Tests/misc/
DxmlWriter_test.py1 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/
DT_S_I_V_.py1 from fontTools.misc.py23 import strjoin, tobytes, tostr
20 self.data = tobytes("\r".join(lines[1:-1]))
DasciiTable.py1 from fontTools.misc.py23 import strjoin, tobytes, tostr
21 self.data = tobytes("\n".join(lines[1:-1]))
DT_S_I__1.py7 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.py1 from fontTools.misc.py23 import bytesjoin, tobytes
45 dataList.append(tobytes(stringPool))
DG__l_o_c.py44 data += self.locations.tobytes()
48 data += self.attribIds.tobytes()
D_p_o_s_t.py1 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")
DS_I_N_G_.py1 from fontTools.misc.py23 import bytechr, byteord, tobytes, tostr
67 data = data + tobytes(self.baseGlyphName)
DD_S_I_G_.py1 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/
Ddecoder.py196 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/
Dplistlib.py6 from fontTools.misc.py23 import tobytes
41 return loads(tobytes(data, encoding="utf-8"), use_builtin_types=False)
/external/fonttools/Tests/svgLib/path/
Dpath_test.py1 from fontTools.misc.py23 import tobytes
42 tmp.write(tobytes(SVG_DATA))
/external/python/cpython3/Lib/test/
Dtest_array.py431 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 …]
Dtest_buffer.py665 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/
Dtest_struct.py436 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/
Dimage_checksum.py35 md5 = hashlib.md5(Image.open(args.imagefile).tobytes())

1234