Home
last modified time | relevance | path

Searched refs:byte_string (Results 1 – 25 of 27) sorted by relevance

12

/external/autotest/client/cros/
Ddhcp_packet.py50 def unpack(byte_string): argument
51 return struct.unpack(field_format, byte_string)[0]
84 def unpack(byte_string): argument
85 return socket.inet_ntoa(byte_string)
94 def unpack(byte_string): argument
95 return [socket.inet_ntoa(byte_string[idx:idx+4])
96 for idx in range(0, len(byte_string), 4)]
105 def unpack(byte_string): argument
106 return byte_string
115 def unpack(byte_string): argument
[all …]
Ddhcp_unittest.py92 byte_string = dhcp_packet.ClasslessStaticRoutesOption.pack(
94 if byte_string != TEST_CLASSLESS_STATIC_ROUTE_DATA:
96 pretty_actual = bin2hex(byte_string, 100)
118 byte_string = dhcp_packet.DomainListOption.pack(
120 if byte_string != TEST_DOMAIN_SEARCH_LIST_EXPECTED:
122 pretty_actual = bin2hex(byte_string, 100)
131 byte_string = '\x00' * 240 + TEST_DOMAIN_SEARCH_LIST1 + TEST_DOMAIN_SEARCH_LIST2 + '\xff'
132 packet = dhcp_packet.DhcpPacket(byte_str=byte_string)
/external/python/asn1crypto/asn1crypto/
D_iri.py218 byte_string = unquote_to_bytes(match.group(0))
219 unicode_string = byte_string.decode('utf-8', 'iriutf8')
245 def _urlunquote(byte_string, remap=None, preserve=None): argument
265 if byte_string is None:
266 return byte_string
268 if byte_string == b'':
277 byte_string = byte_string.replace(char.encode('ascii'), replacement.encode('ascii'))
279 byte_string = unquote_to_bytes(byte_string)
283byte_string = byte_string.replace(char.encode('ascii'), ('%%%02x' % ord(char)).encode('ascii'))
285 output = byte_string.decode('utf-8', 'iriutf8')
Dpem.py27 def detect(byte_string): argument
39 if not isinstance(byte_string, byte_cls):
44 _type_name(byte_string)
47 return byte_string.find(b'-----BEGIN') != -1 or byte_string.find(b'---- BEGIN') != -1
D_types.py13 def bytes_to_list(byte_string): argument
14 return [ord(b) for b in byte_string]
Dkeys.py156 byte_string = b'\x04'
157 byte_string += int_to_bytes(x, width=num_bytes)
158 byte_string += int_to_bytes(y, width=num_bytes)
160 return cls(byte_string)
Dx509.py390 byte_string = self.__bytes__()
391 byte_len = len(byte_string)
395 value = inet_ntop(socket.AF_INET6, byte_string[0:16])
397 cidr_int = int_from_bytes(byte_string[16:])
399 value = inet_ntop(socket.AF_INET, byte_string[0:4])
401 cidr_int = int_from_bytes(byte_string[4:])
/external/pdfium/core/fxcrt/
Dbytestring_unittest.cpp229 ByteString byte_string("hello"); in TEST() local
230 EXPECT_TRUE(byte_string == byte_string); in TEST()
231 EXPECT_FALSE(byte_string == null_string); in TEST()
232 EXPECT_FALSE(byte_string == empty_string); in TEST()
233 EXPECT_FALSE(byte_string == deleted_string); in TEST()
234 EXPECT_FALSE(null_string == byte_string); in TEST()
235 EXPECT_FALSE(empty_string == byte_string); in TEST()
236 EXPECT_FALSE(deleted_string == byte_string); in TEST()
239 EXPECT_TRUE(byte_string == byte_string_same1); in TEST()
240 EXPECT_TRUE(byte_string_same1 == byte_string); in TEST()
[all …]
/external/python/asn1crypto/tests/
Dtest_pem.py62 byte_string = f.read()
63 self.assertEqual(is_pem, pem.detect(byte_string))
112 byte_string = f.read()
114 type_name, headers, decoded_bytes = pem.unarmor(byte_string)
141 byte_string = f.read()
143 encoded_bytes = pem.armor(type_name, byte_string, headers=headers)
/external/tensorflow/tensorflow/python/kernel_tests/
Ddecode_bmp_op_test.py59 byte_string = bytes(bytearray(encoded_bytes))
60 img_in = constant_op.constant(byte_string, dtype=dtypes.string)
135 byte_string = bytes(bytearray(encoded_bytes))
136 img_in = constant_op.constant(byte_string, dtype=dtypes.string)
Ddecode_png_op_test.py43 byte_string = bytes(bytearray(encoded_bytes))
44 img_in = constant_op.constant(byte_string, dtype=dtypes.string)
/external/tensorflow/tensorflow/core/distributed_runtime/
Dworker_cache_logger.cc106 auto byte_string = strings::StrCat("[", bytes, "B] "); in RecordDataTransfer() local
108 byte_string = strings::Printf("[%.1fMB] ", bytes / 1048576.0); in RecordDataTransfer()
114 auto label = strings::StrCat(byte_string, rate_string, tensor_name, in RecordDataTransfer()
/external/python/pyopenssl/src/OpenSSL/
D_util.py116 def byte_string(s): function
122 def byte_string(s): function
/external/llvm-project/libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/
Dtypes.pass.cpp31 static_assert((std::is_same<myconv::byte_string, std::string>::value), ""); in main()
/external/libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/
Dtypes.pass.cpp30 static_assert((std::is_same<myconv::byte_string, std::string>::value), ""); in main()
/external/python/asn1crypto/docs/
Dpem.md8 - `detect(byte_string)`
/external/turbine/javatests/com/google/turbine/lower/testdata/
Dconst_conv.test68 public static final String byte_string = "" + (byte) 0;
/external/rust/crates/bindgen/src/codegen/
Dhelpers.rs240 let b = proc_macro2::Literal::byte_string(&string.as_bytes()); in cstr_expr()
/external/rust/crates/proc-macro2/src/
Dwrapper.rs868 pub fn byte_string(bytes: &[u8]) -> Literal { in byte_string() method
870 Literal::Compiler(proc_macro::Literal::byte_string(bytes)) in byte_string()
872 Literal::Fallback(fallback::Literal::byte_string(bytes)) in byte_string()
Dlib.rs1178 pub fn byte_string(s: &[u8]) -> Literal { in byte_string() method
1179 Literal::_new(imp::Literal::byte_string(s)) in byte_string()
Dparse.rs322 } else if let Ok(ok) = byte_string(input) { in literal_nocapture()
403 fn byte_string(input: Cursor) -> Result<Cursor, Reject> { in byte_string() function
Dfallback.rs858 pub fn byte_string(bytes: &[u8]) -> Literal { in byte_string() method
/external/llvm-project/libcxx/include/
Dlocale90 typedef basic_string<char, char_traits<char>, Byte_alloc> byte_string;
97 explicit wstring_convert(const byte_string& byte_err, // explicit in C++14
105 wide_string from_bytes(const byte_string& str);
108 byte_string to_bytes(Elem wchar);
109 byte_string to_bytes(const Elem* wptr);
110 byte_string to_bytes(const wide_string& wstr);
111 byte_string to_bytes(const Elem* first, const Elem* last);
3638 typedef basic_string<char, char_traits<char>, _Byte_alloc> byte_string;
3644 byte_string __byte_err_string_;
3657 _LIBCPP_EXPLICIT_AFTER_CXX11 wstring_convert(const byte_string& __byte_err,
[all …]
/external/libcxx/include/
Dlocale91 typedef basic_string<char, char_traits<char>, Byte_alloc> byte_string;
98 explicit wstring_convert(const byte_string& byte_err, // explicit in C++14
106 wide_string from_bytes(const byte_string& str);
109 byte_string to_bytes(Elem wchar);
110 byte_string to_bytes(const Elem* wptr);
111 byte_string to_bytes(const wide_string& wstr);
112 byte_string to_bytes(const Elem* first, const Elem* last);
3643 typedef basic_string<char, char_traits<char>, _Byte_alloc> byte_string;
3649 byte_string __byte_err_string_;
3662 _LIBCPP_EXPLICIT_AFTER_CXX11 wstring_convert(const byte_string& __byte_err,
[all …]
/external/rust/crates/syn/src/
Dlit.rs251 let mut token = Literal::byte_string(value); in new()

12