Home
last modified time | relevance | path

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

123

/third_party/boost/libs/asio/test/ip/
Daddress_v4.cpp70 ip::address_v4::bytes_type bytes_value = addr1.to_bytes(); in test()
176 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()
[all …]
Daddress_v6.cpp89 ip::address_v6::bytes_type bytes_value = addr1.to_bytes(); in test()
201 BOOST_ASIO_CHECK(a2.to_bytes()[0] == 1); in test()
202 BOOST_ASIO_CHECK(a2.to_bytes()[1] == 2); in test()
203 BOOST_ASIO_CHECK(a2.to_bytes()[2] == 3); in test()
204 BOOST_ASIO_CHECK(a2.to_bytes()[3] == 4); in test()
205 BOOST_ASIO_CHECK(a2.to_bytes()[4] == 5); in test()
206 BOOST_ASIO_CHECK(a2.to_bytes()[5] == 6); in test()
207 BOOST_ASIO_CHECK(a2.to_bytes()[6] == 7); in test()
208 BOOST_ASIO_CHECK(a2.to_bytes()[7] == 8); in test()
209 BOOST_ASIO_CHECK(a2.to_bytes()[8] == 9); in test()
[all …]
/third_party/uboot/u-boot-2020.01/board/synopsys/hsdk/
Dheaderize-hsdk.py86 file.write(arc_id.to_bytes(2, byteorder='little'))
87 file.write(uboot_img_size.to_bytes(4, byteorder='little'))
88 file.write(check_sum.to_bytes(1, byteorder='little'))
89 file.write(image_copy_adr.to_bytes(4, byteorder='little'))
90 file.write(magic1.to_bytes(5, byteorder='big'))
91 file.write(jump_address.to_bytes(4, byteorder='little'))
92 for i in range(12): file.write(0xFF.to_bytes(1, byteorder='little'))
93 for byte in magic2: file.write(byte.to_bytes(36, byteorder='big'))
95 file.write(0xFF.to_bytes(1, byteorder='little'))
96 file.write(flash_address.to_bytes(4, byteorder='little'))
[all …]
/third_party/uboot/u-boot-2020.01/board/synopsys/axs10x/
Dheaderize-axs.py98 jmpchk_sum = sum(jump_address.to_bytes(4, byteorder='big'))
106 file.write(arc_id.to_bytes(2, byteorder='little'))
107 file.write(uboot_img_size.to_bytes(4, byteorder='little'))
108 file.write(check_sum.to_bytes(1, byteorder='little'))
109 file.write(image_copy_adr.to_bytes(4, byteorder='little'))
110 file.write(magic1.to_bytes(5, byteorder='big'))
111 for i in range(16): file.write(0x00.to_bytes(1, byteorder='little'))
112 for byte in magic2: file.write(byte.to_bytes(36, byteorder='big'))
114 file.write(0x00.to_bytes(1, byteorder='little'))
116 file.write(jump_address.to_bytes(4, byteorder='little'))
/third_party/boringssl/src/third_party/fiat/
Dmake_curve25519_tables.py86 def to_bytes(x): function
135 small_precomp += to_bytes(P[0])
136 small_precomp += to_bytes(P[1])
/third_party/libpsl/src/
Dpsl-make-dafsa248 def to_bytes(n): function
267 return to_bytes(byte ^ 0xC0), [to_nodes(word[1:], multibyte_length - 1)]
272 return to_bytes(int(word[:1], 16) & 0x0F), [None]
280 return to_bytes(0x1F), [(to_bytes(byte ^ 0x80), [to_nodes(word[1:], char_length - 1)])]
/third_party/boost/boost/asio/ip/impl/
Daddress_v6.ipp90 address_v6::bytes_type address_v6::to_bytes() const BOOST_ASIO_NOEXCEPT
262 address_v4::bytes_type v4_bytes = addr.to_bytes();
270 address_v4::bytes_type v4_bytes = addr.to_bytes();
331 address_v6::bytes_type v6_bytes = v6_addr.to_bytes();
340 address_v4::bytes_type v4_bytes = v4_addr.to_bytes();
Dnetwork_v6.ipp48 address_v6::bytes_type bytes(address_.to_bytes());
61 address_v6::bytes_type begin_bytes(address_.to_bytes());
62 address_v6::bytes_type end_bytes(address_.to_bytes());
/third_party/python/Lib/test/
Dtest_long.py1098 test.to_bytes(len(expected), byteorder, signed=signed),
1179 self.assertRaises(OverflowError, (256).to_bytes, 1, 'big', signed=False)
1180 self.assertRaises(OverflowError, (256).to_bytes, 1, 'big', signed=True)
1181 self.assertRaises(OverflowError, (256).to_bytes, 1, 'little', signed=False)
1182 self.assertRaises(OverflowError, (256).to_bytes, 1, 'little', signed=True)
1183 self.assertRaises(OverflowError, (-1).to_bytes, 2, 'big', signed=False)
1184 self.assertRaises(OverflowError, (-1).to_bytes, 2, 'little', signed=False)
1185 self.assertEqual((0).to_bytes(0, 'big'), b'')
1186 self.assertEqual((1).to_bytes(5, 'big'), b'\x00\x00\x00\x00\x01')
1187 self.assertEqual((0).to_bytes(5, 'big'), b'\x00\x00\x00\x00\x00')
[all …]
/third_party/flutter/engine/flutter/fml/platform/win/
Dwstring_conversion.h33 return converter.to_bytes(wstr); in WideStringToString()
/third_party/python/Lib/
Dhashlib.py231 prev = prf(salt + loop.to_bytes(4, 'big'))
239 dkey += rkey.to_bytes(inner.digest_size, 'big')
Dbase64.py232 decoded += acc.to_bytes(5, 'big')
238 last = acc.to_bytes(5, 'big')
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DAdapterD3D12.cpp85 mPCIInfo.name = converter.to_bytes(adapterDesc.Description); in Initialize()
/third_party/boost/boost/asio/ssl/impl/
Drfc2818_verification.ipp84 ip::address_v4::bytes_type bytes = address.to_v4().to_bytes();
93 ip::address_v6::bytes_type bytes = address.to_v6().to_bytes();
/third_party/boost/boost/asio/detail/
Dwinrt_utils.hpp56 return converter.to_bytes(from->Data());
/third_party/glib/gio/
Dginetaddress.h56 const guint8 * (*to_bytes) (GInetAddress *address); member
/third_party/boost/boost/asio/ip/detail/
Dsocket_option.hpp403 address_v6::bytes_type bytes = ipv6_address.to_bytes(); in multicast_request()
438 address_v6::bytes_type bytes = multicast_address.to_bytes(); in multicast_request()
/third_party/boost/libs/asio/example/cpp11/socks4/
Dsocks4.hpp52 address_ = endpoint.address().to_v4().to_bytes(); in request()
/third_party/boost/doc/html/boost_asio/example/cpp11/socks4/
Dsocks4.hpp52 address_ = endpoint.address().to_v4().to_bytes(); in request()
/third_party/boost/doc/html/boost_asio/example/cpp03/socks4/
Dsocks4.hpp51 address_ = endpoint.address().to_v4().to_bytes(); in request()
/third_party/boost/libs/asio/example/cpp03/socks4/
Dsocks4.hpp51 address_ = endpoint.address().to_v4().to_bytes(); in request()
/third_party/boost/boost/asio/ip/
Daddress_v6.hpp105 BOOST_ASIO_DECL bytes_type to_bytes() const BOOST_ASIO_NOEXCEPT;
Daddress_v4.hpp106 BOOST_ASIO_DECL bytes_type to_bytes() const BOOST_ASIO_NOEXCEPT;
/third_party/flutter/skia/third_party/externals/dawn/scripts/
Dgit-clang-format391 p.stdin.write(to_bytes('%s\0' % line))
557 def to_bytes(str_input): function
/third_party/flutter/engine/flutter/fml/platform/android/
Djni_util.cc42 .to_bytes(u16_string); in UTF16StringToUTF8String()

123