Home
last modified time | relevance | path

Searched refs:to_bytes (Results 1 – 25 of 4052) sorted by relevance

12345678910>>...163

/dports/sysutils/fluent-bit/fluent-bit-1.8.11/tests/internal/
H A Dunit_sizes.c8 #define to_bytes flb_utils_size_to_bytes macro
17 TEST_CHECK(to_bytes("1") == 1); in test_unit_sizes()
18 TEST_CHECK(to_bytes("50") == 50); in test_unit_sizes()
22 TEST_CHECK(to_bytes("1KB") == KB); in test_unit_sizes()
23 TEST_CHECK(to_bytes("1K") == KB); in test_unit_sizes()
24 TEST_CHECK(to_bytes("1kB") == KB); in test_unit_sizes()
25 TEST_CHECK(to_bytes("1kb") == KB); in test_unit_sizes()
26 TEST_CHECK(to_bytes("1k") == KB); in test_unit_sizes()
30 TEST_CHECK(to_bytes("1M") == MB); in test_unit_sizes()
33 TEST_CHECK(to_bytes("1m") == MB); in test_unit_sizes()
[all …]
/dports/comms/py-pyserial/pyserial-3.5/test/
H A Dtest_readline.py52 self.s.write(serial.to_bytes([0x31, 0x0a, 0x32, 0x0a, 0x33, 0x0a]))
53 self.assertEqual(self.s.readline(), serial.to_bytes([0x31, 0x0a]))
54 self.assertEqual(self.s.readline(), serial.to_bytes([0x32, 0x0a]))
55 self.assertEqual(self.s.readline(), serial.to_bytes([0x33, 0x0a]))
57 self.assertEqual(self.s.readline(), serial.to_bytes([]))
64 … [serial.to_bytes([0x31, 0x0a]), serial.to_bytes([0x32, 0x0a]), serial.to_bytes([0x33, 0x0a])]
73 … [serial.to_bytes([0x31, 0x0a]), serial.to_bytes([0x32, 0x0a]), serial.to_bytes([0x33, 0x0a])]
84 … [serial.to_bytes([0x31, 0x0a]), serial.to_bytes([0x32, 0x0a]), serial.to_bytes([0x33, 0x0a])]
90 self.s.write(serial.to_bytes("no\rno\nyes\r\n"))
92 self.s.readline(eol=serial.to_bytes("\r\n")),
[all …]
/dports/net/czmq/czmq-4.1.1/bindings/python_cffi/czmq_cffi/
H A DZsys.py184 return utils.lib.zsys_sprintf(utils.to_bytes(format), )
233 utils.lib.zsys_socket_error(utils.to_bytes(reason))
261 …return utils.lib.zsys_run_as(utils.to_bytes(lockfile), utils.to_bytes(group), utils.to_bytes(user))
432 utils.lib.zsys_set_interface(utils.to_bytes(value))
447 utils.lib.zsys_set_ipv6_address(utils.to_bytes(value))
494 utils.lib.zsys_set_logident(utils.to_bytes(value))
527 utils.lib.zsys_error(utils.to_bytes(format), )
533 utils.lib.zsys_warning(utils.to_bytes(format), )
539 utils.lib.zsys_notice(utils.to_bytes(format), )
545 utils.lib.zsys_info(utils.to_bytes(format), )
[all …]
/dports/net/czmq4/czmq-4.2.1/bindings/python_cffi/czmq_cffi/
H A DZsys.py122 return utils.lib.zsys_file_exists(utils.to_bytes(filename))
138 return utils.lib.zsys_file_mode(utils.to_bytes(filename))
145 return utils.lib.zsys_file_delete(utils.to_bytes(filename))
174 return utils.lib.zsys_dir_change(utils.to_bytes(pathname))
273 utils.lib.zsys_socket_error(utils.to_bytes(reason))
293 return utils.lib.zsys_daemonize(utils.to_bytes(workdir))
304 …return utils.lib.zsys_run_as(utils.to_bytes(lockfile), utils.to_bytes(group), utils.to_bytes(user))
558 utils.lib.zsys_set_interface(utils.to_bytes(value))
575 utils.lib.zsys_set_ipv6_address(utils.to_bytes(value))
705 utils.lib.zsys_set_logident(utils.to_bytes(value))
[all …]
/dports/databases/percona57-pam-for-mysql/boost_1_59_0/libs/asio/test/ip/
H A Daddress_v4.cpp145 BOOST_ASIO_CHECK(a1.to_bytes()[0] == 0); in test()
146 BOOST_ASIO_CHECK(a1.to_bytes()[1] == 0); in test()
147 BOOST_ASIO_CHECK(a1.to_bytes()[2] == 0); in test()
148 BOOST_ASIO_CHECK(a1.to_bytes()[3] == 0); in test()
153 BOOST_ASIO_CHECK(a2.to_bytes()[0] == 1); in test()
154 BOOST_ASIO_CHECK(a2.to_bytes()[1] == 2); in test()
155 BOOST_ASIO_CHECK(a2.to_bytes()[2] == 3); in test()
156 BOOST_ASIO_CHECK(a2.to_bytes()[3] == 4); in test()
163 BOOST_ASIO_CHECK(a3.to_bytes()[0] == 1); in test()
164 BOOST_ASIO_CHECK(a3.to_bytes()[1] == 2); in test()
[all …]
/dports/databases/percona57-server/boost_1_59_0/libs/asio/test/ip/
H A Daddress_v4.cpp145 BOOST_ASIO_CHECK(a1.to_bytes()[0] == 0); in test()
146 BOOST_ASIO_CHECK(a1.to_bytes()[1] == 0); in test()
147 BOOST_ASIO_CHECK(a1.to_bytes()[2] == 0); in test()
148 BOOST_ASIO_CHECK(a1.to_bytes()[3] == 0); in test()
153 BOOST_ASIO_CHECK(a2.to_bytes()[0] == 1); in test()
154 BOOST_ASIO_CHECK(a2.to_bytes()[1] == 2); in test()
155 BOOST_ASIO_CHECK(a2.to_bytes()[2] == 3); in test()
156 BOOST_ASIO_CHECK(a2.to_bytes()[3] == 4); in test()
163 BOOST_ASIO_CHECK(a3.to_bytes()[0] == 1); in test()
164 BOOST_ASIO_CHECK(a3.to_bytes()[1] == 2); in test()
[all …]
/dports/databases/xtrabackup/boost_1_59_0/libs/asio/test/ip/
H A Daddress_v4.cpp145 BOOST_ASIO_CHECK(a1.to_bytes()[0] == 0); in test()
146 BOOST_ASIO_CHECK(a1.to_bytes()[1] == 0); in test()
147 BOOST_ASIO_CHECK(a1.to_bytes()[2] == 0); in test()
148 BOOST_ASIO_CHECK(a1.to_bytes()[3] == 0); in test()
153 BOOST_ASIO_CHECK(a2.to_bytes()[0] == 1); in test()
154 BOOST_ASIO_CHECK(a2.to_bytes()[1] == 2); in test()
155 BOOST_ASIO_CHECK(a2.to_bytes()[2] == 3); in test()
156 BOOST_ASIO_CHECK(a2.to_bytes()[3] == 4); in test()
163 BOOST_ASIO_CHECK(a3.to_bytes()[0] == 1); in test()
164 BOOST_ASIO_CHECK(a3.to_bytes()[1] == 2); in test()
[all …]
/dports/databases/percona57-client/boost_1_59_0/libs/asio/test/ip/
H A Daddress_v4.cpp145 BOOST_ASIO_CHECK(a1.to_bytes()[0] == 0); in test()
146 BOOST_ASIO_CHECK(a1.to_bytes()[1] == 0); in test()
147 BOOST_ASIO_CHECK(a1.to_bytes()[2] == 0); in test()
148 BOOST_ASIO_CHECK(a1.to_bytes()[3] == 0); in test()
153 BOOST_ASIO_CHECK(a2.to_bytes()[0] == 1); in test()
154 BOOST_ASIO_CHECK(a2.to_bytes()[1] == 2); in test()
155 BOOST_ASIO_CHECK(a2.to_bytes()[2] == 3); in test()
156 BOOST_ASIO_CHECK(a2.to_bytes()[3] == 4); in test()
163 BOOST_ASIO_CHECK(a3.to_bytes()[0] == 1); in test()
164 BOOST_ASIO_CHECK(a3.to_bytes()[1] == 2); in test()
[all …]
/dports/databases/mysqlwsrep57-server/boost_1_59_0/libs/asio/test/ip/
H A Daddress_v4.cpp145 BOOST_ASIO_CHECK(a1.to_bytes()[0] == 0); in test()
146 BOOST_ASIO_CHECK(a1.to_bytes()[1] == 0); in test()
147 BOOST_ASIO_CHECK(a1.to_bytes()[2] == 0); in test()
148 BOOST_ASIO_CHECK(a1.to_bytes()[3] == 0); in test()
153 BOOST_ASIO_CHECK(a2.to_bytes()[0] == 1); in test()
154 BOOST_ASIO_CHECK(a2.to_bytes()[1] == 2); in test()
155 BOOST_ASIO_CHECK(a2.to_bytes()[2] == 3); in test()
156 BOOST_ASIO_CHECK(a2.to_bytes()[3] == 4); in test()
163 BOOST_ASIO_CHECK(a3.to_bytes()[0] == 1); in test()
164 BOOST_ASIO_CHECK(a3.to_bytes()[1] == 2); in test()
[all …]
/dports/audio/supercollider/SuperCollider-3.11.0-Source/external_libraries/link/modules/asio-standalone/asio/src/tests/unit/ip/
H A Daddress_v4.cpp154 ASIO_CHECK(a1.to_bytes()[0] == 0); in test()
155 ASIO_CHECK(a1.to_bytes()[1] == 0); in test()
156 ASIO_CHECK(a1.to_bytes()[2] == 0); in test()
157 ASIO_CHECK(a1.to_bytes()[3] == 0); in test()
162 ASIO_CHECK(a2.to_bytes()[0] == 1); in test()
163 ASIO_CHECK(a2.to_bytes()[1] == 2); in test()
164 ASIO_CHECK(a2.to_bytes()[2] == 3); in test()
165 ASIO_CHECK(a2.to_bytes()[3] == 4); in test()
172 ASIO_CHECK(a3.to_bytes()[0] == 1); in test()
173 ASIO_CHECK(a3.to_bytes()[1] == 2); in test()
[all …]
/dports/net/zyre/zyre-2.0.1/bindings/python_cffi/zyre_cffi/
H A DZyre.py21 p = utils.lib.zyre_new(utils.to_bytes(name))
48 utils.lib.zyre_set_name(self._p, utils.to_bytes(name))
127 utils.lib.zyre_set_interface(self._p, utils.to_bytes(value))
150 utils.lib.zyre_set_contest_in_group(self._p, utils.to_bytes(group))
169 utils.lib.zyre_set_zap_domain(self._p, utils.to_bytes(domain))
198 utils.lib.zyre_gossip_unpublish(self._p, utils.to_bytes(node))
221 return utils.lib.zyre_join(self._p, utils.to_bytes(group))
227 return utils.lib.zyre_leave(self._p, utils.to_bytes(group))
292 return utils.lib.zyre_peer_address(self._p, utils.to_bytes(peer))
299 return utils.lib.zyre_peer_header_value(self._p, utils.to_bytes(peer), utils.to_bytes(name))
[all …]
/dports/devel/boost-docs/boost_1_72_0/libs/asio/test/ip/
H A Daddress_v4.cpp176 BOOST_ASIO_CHECK(a1.to_bytes()[0] == 0); in test()
177 BOOST_ASIO_CHECK(a1.to_bytes()[1] == 0); in test()
178 BOOST_ASIO_CHECK(a1.to_bytes()[2] == 0); in test()
179 BOOST_ASIO_CHECK(a1.to_bytes()[3] == 0); in test()
187 BOOST_ASIO_CHECK(a2.to_bytes()[0] == 1); in test()
188 BOOST_ASIO_CHECK(a2.to_bytes()[1] == 2); in test()
189 BOOST_ASIO_CHECK(a2.to_bytes()[2] == 3); in test()
190 BOOST_ASIO_CHECK(a2.to_bytes()[3] == 4); in test()
203 BOOST_ASIO_CHECK(a3.to_bytes()[0] == 1); in test()
204 BOOST_ASIO_CHECK(a3.to_bytes()[1] == 2); in test()
[all …]
/dports/devel/boost-python-libs/boost_1_72_0/libs/asio/test/ip/
H A Daddress_v4.cpp176 BOOST_ASIO_CHECK(a1.to_bytes()[0] == 0); in test()
177 BOOST_ASIO_CHECK(a1.to_bytes()[1] == 0); in test()
178 BOOST_ASIO_CHECK(a1.to_bytes()[2] == 0); in test()
179 BOOST_ASIO_CHECK(a1.to_bytes()[3] == 0); in test()
187 BOOST_ASIO_CHECK(a2.to_bytes()[0] == 1); in test()
188 BOOST_ASIO_CHECK(a2.to_bytes()[1] == 2); in test()
189 BOOST_ASIO_CHECK(a2.to_bytes()[2] == 3); in test()
190 BOOST_ASIO_CHECK(a2.to_bytes()[3] == 4); in test()
203 BOOST_ASIO_CHECK(a3.to_bytes()[0] == 1); in test()
204 BOOST_ASIO_CHECK(a3.to_bytes()[1] == 2); in test()
[all …]
/dports/www/restbed/restbed-4.8/dependency/asio/asio/src/tests/unit/ip/
H A Daddress_v4.cpp181 ASIO_CHECK(a1.to_bytes()[0] == 0); in test()
182 ASIO_CHECK(a1.to_bytes()[1] == 0); in test()
183 ASIO_CHECK(a1.to_bytes()[2] == 0); in test()
184 ASIO_CHECK(a1.to_bytes()[3] == 0); in test()
192 ASIO_CHECK(a2.to_bytes()[0] == 1); in test()
193 ASIO_CHECK(a2.to_bytes()[1] == 2); in test()
194 ASIO_CHECK(a2.to_bytes()[2] == 3); in test()
195 ASIO_CHECK(a2.to_bytes()[3] == 4); in test()
208 ASIO_CHECK(a3.to_bytes()[0] == 1); in test()
209 ASIO_CHECK(a3.to_bytes()[1] == 2); in test()
[all …]
/dports/emulators/mess/mame-mame0226/3rdparty/asio/src/tests/unit/ip/
H A Daddress_v4.cpp176 ASIO_CHECK(a1.to_bytes()[0] == 0); in test()
177 ASIO_CHECK(a1.to_bytes()[1] == 0); in test()
178 ASIO_CHECK(a1.to_bytes()[2] == 0); in test()
179 ASIO_CHECK(a1.to_bytes()[3] == 0); in test()
187 ASIO_CHECK(a2.to_bytes()[0] == 1); in test()
188 ASIO_CHECK(a2.to_bytes()[1] == 2); in test()
189 ASIO_CHECK(a2.to_bytes()[2] == 3); in test()
190 ASIO_CHECK(a2.to_bytes()[3] == 4); in test()
203 ASIO_CHECK(a3.to_bytes()[0] == 1); in test()
204 ASIO_CHECK(a3.to_bytes()[1] == 2); in test()
[all …]
/dports/emulators/mame/mame-mame0226/3rdparty/asio/src/tests/unit/ip/
H A Daddress_v4.cpp176 ASIO_CHECK(a1.to_bytes()[0] == 0); in test()
177 ASIO_CHECK(a1.to_bytes()[1] == 0); in test()
178 ASIO_CHECK(a1.to_bytes()[2] == 0); in test()
179 ASIO_CHECK(a1.to_bytes()[3] == 0); in test()
187 ASIO_CHECK(a2.to_bytes()[0] == 1); in test()
188 ASIO_CHECK(a2.to_bytes()[1] == 2); in test()
189 ASIO_CHECK(a2.to_bytes()[2] == 3); in test()
190 ASIO_CHECK(a2.to_bytes()[3] == 4); in test()
203 ASIO_CHECK(a3.to_bytes()[0] == 1); in test()
204 ASIO_CHECK(a3.to_bytes()[1] == 2); in test()
[all …]
/dports/devel/boost-libs/boost_1_72_0/libs/asio/test/ip/
H A Daddress_v4.cpp176 BOOST_ASIO_CHECK(a1.to_bytes()[0] == 0); in test()
177 BOOST_ASIO_CHECK(a1.to_bytes()[1] == 0); in test()
178 BOOST_ASIO_CHECK(a1.to_bytes()[2] == 0); in test()
179 BOOST_ASIO_CHECK(a1.to_bytes()[3] == 0); in test()
187 BOOST_ASIO_CHECK(a2.to_bytes()[0] == 1); in test()
188 BOOST_ASIO_CHECK(a2.to_bytes()[1] == 2); in test()
189 BOOST_ASIO_CHECK(a2.to_bytes()[2] == 3); in test()
190 BOOST_ASIO_CHECK(a2.to_bytes()[3] == 4); in test()
203 BOOST_ASIO_CHECK(a3.to_bytes()[0] == 1); in test()
204 BOOST_ASIO_CHECK(a3.to_bytes()[1] == 2); in test()
[all …]
/dports/net/asio/asio-1.16.0/src/tests/unit/ip/
H A Daddress_v4.cpp176 ASIO_CHECK(a1.to_bytes()[0] == 0); in test()
177 ASIO_CHECK(a1.to_bytes()[1] == 0); in test()
178 ASIO_CHECK(a1.to_bytes()[2] == 0); in test()
179 ASIO_CHECK(a1.to_bytes()[3] == 0); in test()
187 ASIO_CHECK(a2.to_bytes()[0] == 1); in test()
188 ASIO_CHECK(a2.to_bytes()[1] == 2); in test()
189 ASIO_CHECK(a2.to_bytes()[2] == 3); in test()
190 ASIO_CHECK(a2.to_bytes()[3] == 4); in test()
203 ASIO_CHECK(a3.to_bytes()[0] == 1); in test()
204 ASIO_CHECK(a3.to_bytes()[1] == 2); in test()
[all …]
/dports/devel/hyperscan/boost_1_75_0/libs/asio/test/ip/
H A Daddress_v4.cpp176 BOOST_ASIO_CHECK(a1.to_bytes()[0] == 0); in test()
177 BOOST_ASIO_CHECK(a1.to_bytes()[1] == 0); in test()
178 BOOST_ASIO_CHECK(a1.to_bytes()[2] == 0); in test()
179 BOOST_ASIO_CHECK(a1.to_bytes()[3] == 0); in test()
187 BOOST_ASIO_CHECK(a2.to_bytes()[0] == 1); in test()
188 BOOST_ASIO_CHECK(a2.to_bytes()[1] == 2); in test()
189 BOOST_ASIO_CHECK(a2.to_bytes()[2] == 3); in test()
190 BOOST_ASIO_CHECK(a2.to_bytes()[3] == 4); in test()
203 BOOST_ASIO_CHECK(a3.to_bytes()[0] == 1); in test()
204 BOOST_ASIO_CHECK(a3.to_bytes()[1] == 2); in test()
[all …]
/dports/multimedia/obs-websocket/obs-websocket-4.8.0/deps/asio/asio/src/tests/unit/ip/
H A Daddress_v4.cpp176 ASIO_CHECK(a1.to_bytes()[0] == 0); in test()
177 ASIO_CHECK(a1.to_bytes()[1] == 0); in test()
178 ASIO_CHECK(a1.to_bytes()[2] == 0); in test()
179 ASIO_CHECK(a1.to_bytes()[3] == 0); in test()
187 ASIO_CHECK(a2.to_bytes()[0] == 1); in test()
188 ASIO_CHECK(a2.to_bytes()[1] == 2); in test()
189 ASIO_CHECK(a2.to_bytes()[2] == 3); in test()
190 ASIO_CHECK(a2.to_bytes()[3] == 4); in test()
203 ASIO_CHECK(a3.to_bytes()[0] == 1); in test()
204 ASIO_CHECK(a3.to_bytes()[1] == 2); in test()
[all …]
/dports/www/p5-Protocol-SocketIO/Protocol-SocketIO-0.07/t/
H A Dmessage.t12 is $m->to_bytes, '0::/test';
15 is $m->to_bytes, '0';
18 is $m->to_bytes, '1::';
21 is $m->to_bytes, '1::/test?my=param';
24 is $m->to_bytes, '2::';
27 is $m->to_bytes, '3:1::blabla';
36 is $m->to_bytes, '3:1::blabla';
40 is $m->to_bytes, '4:1::{"a":"b"}';
43 is $m->to_bytes, '4:1::{"a":"b"}';
62 is $m->to_bytes, '6:::4';
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/catapult/third_party/pyserial/serial/
H A Drfc2217.py86 DONT = to_bytes([254])
87 DO = to_bytes([253])
88 WONT = to_bytes([252])
89 WILL = to_bytes([251])
106 ECHO = to_bytes([1]) # echo
113 SET_BAUDRATE = to_bytes([1])
114 SET_DATASIZE = to_bytes([2])
115 SET_PARITY = to_bytes([3])
116 SET_STOPSIZE = to_bytes([4])
117 SET_CONTROL = to_bytes([5])
[all …]
/dports/devel/py-minidump/minidump-0.0.20/minidump/streams/
H A DModuleListStream.py98 def to_bytes(self): member in VS_FIXEDFILEINFO
99 t = self.dwSignature.to_bytes(4, byteorder = 'little', signed = False)
107 t += self.dwFileOS.to_bytes(4, byteorder = 'little', signed = False)
108 t += self.dwFileType.to_bytes(4, byteorder = 'little', signed = False)
162 def to_bytes(self): member in MINIDUMP_MODULE
165 t += self.CheckSum.to_bytes(4, byteorder = 'little', signed = False)
168 t += self.VersionInfo.to_bytes()
169 t += self.CvRecord.to_bytes()
170 t += self.MiscRecord.to_bytes()
205 def to_bytes(self): member in MINIDUMP_MODULE_LIST
[all …]
/dports/devel/py-kitchen/kitchen-1.2.6/kitchen3/tests/
H A Dtest_converters.py105 tools.eq_(converters.to_bytes(self.u_mixed, encoding='latin',
107 tools.assert_raises(UnicodeEncodeError, converters.to_bytes,
117 tools.eq_(converters.to_bytes(5), b'5')
118 tools.eq_(converters.to_bytes(5, nonstring='empty'), b'')
119 tools.eq_(converters.to_bytes(5, nonstring='passthru'), 5)
121 tools.eq_(converters.to_bytes(5, nonstring='repr'), b'5')
143 tools.eq_(converters.to_bytes(StrReturnsUnicode(),
379 tools.eq_(converters.to_bytes(5), b'5')
380 tools.eq_(converters.to_bytes(5, non_string='empty'), b'')
383 tools.eq_(converters.to_bytes(5, non_string='repr'), b'5')
[all …]
/dports/devel/py-kitchen/kitchen-1.2.6/kitchen2/tests/
H A Dtest_converters.py105 tools.eq_(converters.to_bytes(self.u_mixed, encoding='latin',
107 tools.assert_raises(UnicodeEncodeError, converters.to_bytes,
117 tools.eq_(converters.to_bytes(5), '5')
118 tools.eq_(converters.to_bytes(5, nonstring='empty'), '')
119 tools.eq_(converters.to_bytes(5, nonstring='passthru'), 5)
121 tools.eq_(converters.to_bytes(5, nonstring='repr'), '5')
143 tools.eq_(converters.to_bytes(StrReturnsUnicode(),
376 tools.eq_(converters.to_bytes(5), '5')
377 tools.eq_(converters.to_bytes(5, non_string='empty'), '')
380 tools.eq_(converters.to_bytes(5, non_string='repr'), '5')
[all …]

12345678910>>...163