Home
last modified time | relevance | path

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

12345678910>>...57

/dports/net/google-cloud-sdk/google-cloud-sdk/lib/third_party/gcloud_crcmod/python3/
H A D_crcfunpy.py41 for x in mv.tobytes():
48 for x in mv.tobytes():
55 for x in mv.tobytes():
62 for x in mv.tobytes():
69 for x in mv.tobytes():
76 for x in mv.tobytes():
83 for x in mv.tobytes():
90 for x in mv.tobytes():
97 for x in mv.tobytes():
104 for x in mv.tobytes():
/dports/net/google-cloud-sdk/google-cloud-sdk/platform/gsutil/third_party/crcmod/python3/crcmod/
H A D_crcfunpy.py41 for x in mv.tobytes():
48 for x in mv.tobytes():
55 for x in mv.tobytes():
62 for x in mv.tobytes():
69 for x in mv.tobytes():
76 for x in mv.tobytes():
83 for x in mv.tobytes():
90 for x in mv.tobytes():
97 for x in mv.tobytes():
104 for x in mv.tobytes():
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/catapult/third_party/gsutil/third_party/crcmod/python3/crcmod/
H A D_crcfunpy.py41 for x in mv.tobytes():
48 for x in mv.tobytes():
55 for x in mv.tobytes():
62 for x in mv.tobytes():
69 for x in mv.tobytes():
76 for x in mv.tobytes():
83 for x in mv.tobytes():
90 for x in mv.tobytes():
97 for x in mv.tobytes():
104 for x in mv.tobytes():
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/depot_tools/external_bin/gsutil/gsutil_4.28/gsutil/third_party/crcmod/python3/crcmod/
H A D_crcfunpy.py41 for x in mv.tobytes():
48 for x in mv.tobytes():
55 for x in mv.tobytes():
62 for x in mv.tobytes():
69 for x in mv.tobytes():
76 for x in mv.tobytes():
83 for x in mv.tobytes():
90 for x in mv.tobytes():
97 for x in mv.tobytes():
104 for x in mv.tobytes():
/dports/devel/py-crcmod/crcmod-1.7/python3/crcmod/
H A D_crcfunpy.py41 for x in mv.tobytes():
48 for x in mv.tobytes():
55 for x in mv.tobytes():
62 for x in mv.tobytes():
69 for x in mv.tobytes():
76 for x in mv.tobytes():
83 for x in mv.tobytes():
90 for x in mv.tobytes():
97 for x in mv.tobytes():
104 for x in mv.tobytes():
/dports/www/py-hyper/hyper-18b629b/test/
H A Dtest_socket.py54 d = b.recv(100).tobytes()
67 d += b.recv(100).tobytes()
81 d += b.recv(100).tobytes()
98 d += b.recv(1).tobytes()
115 d += b.recv(900).tobytes()
127 d = b.recv(1200).tobytes()
144 assert b.readline().tobytes() == one
145 assert b.readline().tobytes() == two
163 assert b.readline().tobytes() == one
164 assert b.readline().tobytes() == two
[all …]
/dports/security/pgpin/pgp263in/src/
H A Drsaglue2.c83 int tobytes; in rsaref2reg() local
86 if (tobytes > frombytes) { in rsaref2reg()
87 memset(to, 0, tobytes - frombytes); in rsaref2reg()
90 memcpy((byte *)to, from + frombytes - tobytes, tobytes); in rsaref2reg()
93 hiloswap((byte *)to, tobytes); in rsaref2reg()
106 if (tobytes > frombytes) { in reg2rsaref()
107 memset(to, 0, tobytes-frombytes); in reg2rsaref()
110 memcpy(to, (byte *)from + frombytes - tobytes, tobytes); in reg2rsaref()
113 if (tobytes > frombytes) { in reg2rsaref()
117 memcpy(to, (byte *)from, tobytes); in reg2rsaref()
[all …]
/dports/graphics/libpillowfight/libpillowfight-dae21f97de872e4ad2e94f1b0fc53302a00259fd/src/pillowfight/
H A D__init__.py25 img_in.tobytes(),
59 img_in.tobytes(),
60 img_in2.tobytes(),
80 img_in.tobytes(),
101 img_in.tobytes(),
122 img_in.tobytes(),
142 img_in.tobytes(),
160 img_in.tobytes(),
181 img_in.tobytes(),
202 img_in.tobytes(),
[all …]
/dports/graphics/py-pypillowfight/pypillowfight-0.3.0/src/pillowfight/
H A D__init__.py25 img_in.tobytes(),
59 img_in.tobytes(),
60 img_in2.tobytes(),
80 img_in.tobytes(),
101 img_in.tobytes(),
122 img_in.tobytes(),
142 img_in.tobytes(),
160 img_in.tobytes(),
181 img_in.tobytes(),
202 img_in.tobytes(),
[all …]
/dports/archivers/py-zstandard/zstandard-0.16.0/tests/
H A Dtest_decompressor_multi_decompress_to_buffer.py50 self.assertEqual(result[i].tobytes(), data)
73 self.assertEqual(result[i].tobytes(), data)
120 self.assertEqual(result[i].tobytes(), data)
143 self.assertEqual(data, decompressed[i].tobytes())
146 b = b"".join([frames[0].tobytes(), frames[1].tobytes()])
155 [frames[2].tobytes(), frames[3].tobytes(), frames[4].tobytes()]
177 self.assertEqual(decompressed[i].tobytes(), original[i])
191 self.assertEqual([o.tobytes() for o in result], samples)
206 self.assertEqual(result[0].tobytes(), b"x" * 64)
207 self.assertEqual(result[256].tobytes(), b"y" * 64)
H A Dtest_buffer_util.py48 self.assertEqual(b.tobytes(), b"foo")
52 self.assertEqual(b[0].tobytes(), b"foo")
61 self.assertEqual(b.tobytes(), b"foofooxfooxy")
63 self.assertEqual(b[0].tobytes(), b"foo")
64 self.assertEqual(b[1].tobytes(), b"foox")
65 self.assertEqual(b[2].tobytes(), b"fooxy")
128 self.assertEqual(c[0].tobytes(), b"foo")
129 self.assertEqual(c[1].tobytes(), b"bar")
130 self.assertEqual(c[2].tobytes(), b"baz")
H A Dtest_compressor_multi_compress_to_buffer.py47 self.assertEqual(b[0].tobytes(), frames[0])
48 self.assertEqual(b[1].tobytes(), frames[1])
66 self.assertEqual(result[0].tobytes(), frames[0])
67 self.assertEqual(result[1].tobytes(), frames[1])
110 self.assertEqual(result[i].tobytes(), frame)
129 self.assertEqual(result[i].tobytes(), reference[0])
131 self.assertEqual(result[i].tobytes(), reference[1])
/dports/devel/mercurial/mercurial-6.0/contrib/python-zstandard/tests/
H A Dtest_buffer_util.py59 self.assertEqual(b.tobytes(), b"foo")
63 self.assertEqual(b[0].tobytes(), b"foo")
75 self.assertEqual(b.tobytes(), b"foofooxfooxy")
77 self.assertEqual(b[0].tobytes(), b"foo")
78 self.assertEqual(b[1].tobytes(), b"foox")
79 self.assertEqual(b[2].tobytes(), b"fooxy")
151 self.assertEqual(c[0].tobytes(), b"foo")
152 self.assertEqual(c[1].tobytes(), b"bar")
153 self.assertEqual(c[2].tobytes(), b"baz")
/dports/misc/fq/fq-0.0.2/pkg/interp/testdata/
H A Dmatch.fqtest31 null> "aöaöa" | tobytes | match("ö")
38 null> "aöaöa" | tobytes | match("\u00c3"; "b")
45 null> "aöaöa" | tobytes | match([0xc3])
65 null> [range(256)] | . as $b | tobytes | match($b) | ., (.string | hd)
89 null> "abba" | tobytes | match("B"; "gi")
112 …" | ., "orig", match($p), "buffer_rune", (tobytes | match($p)), "buffer_byte", (tobytes | match("å…
257 …., "orig", capture($p), "buffer_rune", (tobytes | capture($p)), "buffer_byte", (tobytes | capture(…
291 …åå" | ., "orig", scan($p), "buffer_rune", (tobytes | scan($p)), "buffer_byte", (tobytes | scan("åå…
338 …| ., "orig", splits($p), "buffer_rune", (tobytes | splits($p)), "buffer_byte", (tobytes | splits("…
388 …" | ., "orig", split($p), "buffer_rune", (tobytes | split($p)), "buffer_byte", (tobytes | split("å…
[all …]
/dports/security/py-cryptography/cryptography-3.3.2/tests/hazmat/
H A Dtest_der.py23 assert reader.read_bytes(1).tobytes() == b"2"
24 assert reader.read_bytes(4).tobytes() == b"3456"
29 assert reader.read_bytes(3).tobytes() == b"789"
65 assert outer.data.tobytes() == der[2:]
72 assert outer2.data.tobytes() == der[2:]
76 assert outer3.data.tobytes() == der[2:]
97 assert octet_string.data.tobytes() == b"hello"
141 assert element.data.tobytes() == body
/dports/textproc/py-pyexcel-ezodf/pyexcel-ezodf-0.3.4/tests/
H A Dtest_filemanager.py38 self.assertEqual(b'Bender', fo.tobytes())
42 self.assertEqual(b'Bender', fo.tobytes())
46 def tobytes(self, xml_declaration): member in TestFileObject.test_serialisation_xmlelement.XMLElement
51 self.assertEqual(b'XMLElement', fo.tobytes())
55 def tobytes(self): member in TestFileObject.test_serialisation_element.Element
60 self.assertEqual(b'Element', fo.tobytes())
65 fo.tobytes()
/dports/textproc/py-gensim/gensim-4.0.1/gensim/models/
H A D_fasttext_bin.py405 fout.write(_FASTTEXT_FILEFORMAT_MAGIC.tobytes())
406 fout.write(_FASTTEXT_VERSION.tobytes())
423 return (np.int32(field_value).tobytes())
425 return (np.float64(field_value).tobytes())
538 fout.write(np.int32(len(model.wv)).tobytes())
540 fout.write(np.int32(len(model.wv)).tobytes())
543 fout.write(np.int32(0).tobytes())
554 fout.write(np.int64(word_count).tobytes())
583 fout.write(model.wv.vectors_vocab.tobytes())
584 fout.write(model.wv.vectors_ngrams.tobytes())
[all …]
/dports/science/py-scikit-learn/scikit-learn-1.0.2/sklearn/externals/
H A D_pilutil.py370 image = Image.frombytes(mode, shape, data32.tobytes())
375 image = Image.frombytes('L', shape, bytedata.tobytes())
377 image.putpalette(asarray(pal, dtype=uint8).tobytes())
382 image.putpalette(asarray(pal, dtype=uint8).tobytes())
386 image = Image.frombytes('1', shape, bytedata.tobytes())
395 image = Image.frombytes(mode, shape, data32.tobytes())
420 strdata = bytedata.tobytes()
423 strdata = transpose(bytedata, (0, 2, 1)).tobytes()
426 strdata = transpose(bytedata, (1, 2, 0)).tobytes()
/dports/misc/urh/urh-2.9.2/src/urh/util/
H A DWSPChecksum.py73 if bits_behind_sync[-4:].tobytes() != array.array("B", [1, 0, 1, 1]).tobytes():
76 rorg = bits_behind_sync[0:4].tobytes()
77 …if rorg == array.array("B", [0, 1, 0, 1]).tobytes() or rorg == array.array("B", [0, 1, 1, 0]).toby…
79 if cls.checksum4(bits_behind_sync[-8:]).tobytes() == bits_behind_sync[-8:-4].tobytes():
/dports/security/py-pyspnego/pyspnego-0.3.1/src/spnego/_ntlm_raw/
H A Dmessages.py250 return self._data.tobytes()
451 return self._data[24:32].tobytes()
822 return FileTime.unpack(self._data[8:16].tobytes())
831 return self._data[16:24].tobytes()
842 return TargetInfo.unpack(self._data[28:].tobytes())
846 return self._data.tobytes()
1012 return self._data[8:16].tobytes()
1023 return self._data[16:48].tobytes()
1034 return self._data.tobytes()
1126 return self._data[4:7].tobytes()
[all …]
/dports/security/zeronet/ZeroNet-0.7.1/plugins/Bigfile/
H A DBigfilePiecefield.py60 return "".join(["1" if b else "0" for b in self.tobytes()])
74 def tobytes(self): member in BigfilePiecefield
78 return packPiecefield(self.data).tobytes()
101 self.data = packPiecefield(data).tobytes()
103 def tobytes(self): member in BigfilePiecefieldPacked
107 return array.array("H", self.data).tobytes()
114 return self.tobytes()[key]
119 data = spliceBit(self.tobytes(), key, value)
/dports/print/py-ttfautohint-py/ttfautohint-py-0.4.3.post1/tests/
H A Dtest_info.py47 string = buf.tobytes()
54 string = buf.tobytes()
60 assert buf.tobytes().endswith(suffix)
101 new_string = buf.tobytes().decode(encoding)
113 assert buf.tobytes() == string
206 new_string = buf.tobytes()
216 new_string = buf.tobytes()
/dports/www/grafana8/grafana-8.3.6/vendor/github.com/apache/arrow/python/pyarrow/
H A Dio-hdfs.pxi60 conf.host = tobytes(host)
67 conf.user = tobytes(user)
78 conf.extra_conf = {tobytes(k): tobytes(v)
116 cdef c_string c_path = tobytes(path)
175 cdef c_string c_path = tobytes(path)
223 cdef c_string c_path = tobytes(path)
234 cdef c_string c_path = tobytes(path)
242 c_string c_path = tobytes(path)
321 c_path = tobytes(path)
323 c_owner = tobytes(owner)
[all …]
/dports/security/vault/vault-1.8.2/vendor/github.com/apache/arrow/python/pyarrow/
H A Dio-hdfs.pxi60 conf.host = tobytes(host)
67 conf.user = tobytes(user)
78 conf.extra_conf = {tobytes(k): tobytes(v)
116 cdef c_string c_path = tobytes(path)
175 cdef c_string c_path = tobytes(path)
223 cdef c_string c_path = tobytes(path)
234 cdef c_string c_path = tobytes(path)
242 c_string c_path = tobytes(path)
321 c_path = tobytes(path)
323 c_owner = tobytes(owner)
[all …]
/dports/databases/arrow/apache-arrow-6.0.1/python/pyarrow/
H A D_hdfsio.pyx70 conf.host = tobytes(host)
77 conf.user = tobytes(user)
88 conf.extra_conf = {tobytes(k): tobytes(v)
126 cdef c_string c_path = tobytes(path)
185 cdef c_string c_path = tobytes(path)
233 cdef c_string c_path = tobytes(path)
244 cdef c_string c_path = tobytes(path)
252 c_string c_path = tobytes(path)
331 c_path = tobytes(path)
333 c_owner = tobytes(owner)
[all …]

12345678910>>...57