Home
last modified time | relevance | path

Searched refs:bytestring (Results 1 - 8 of 8) sorted by relevance

/third_party/python/Lib/test/test_email/
H A D__init__.py51 def _bytes_msg(self, bytestring, message=None, policy=None):
56 return email.message_from_bytes(bytestring, message, policy=policy)
/third_party/rust/crates/bindgen/bindgen-tests/tests/headers/
H A Dconstant-evaluate.h20 const char* bytestring = "Foo"; variable
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/libclang-9/
H A Dconstant-evaluate.rs24 pub const bytestring: &[u8; 4usize] = b"Foo\0"; consts
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/libclang-5/
H A Dconstant-evaluate.rs24 pub const bytestring: &[u8; 4usize] = b"Foo\0"; consts
/third_party/protobuf/ruby/compatibility_tests/v3.0.0/tests/
H A Dbasic.rb628 bytestring = ["FFFF"].pack("H*")
629 m[bytestring] = 1
633 bytestring = ["FFFF"].pack("H*")
634 m[bytestring] = 1
/third_party/protobuf/ruby/tests/
H A Dcommon_tests.rb499 bytestring = ["FFFF"].pack("H*")
500 m[bytestring] = 1
504 bytestring = ["FFFF"].pack("H*")
505 m[bytestring] = 1
/third_party/python/Lib/test/
H A Dtest_codecs.py114 # get a StreamReader for the encoding and feed the bytestring version
1122 bytestring = codecs.BOM_UTF8 + b"ABC\xC2\xA1\xE2\x88\x80XYZ"
1127 istream = reader(io.BytesIO(bytestring))
1144 bytestring = b"ABC\xC2\xA1\xE2\x88\x80XYZ"
1149 istream = reader(io.BytesIO(bytestring))
H A Dpickletester.py2905 # Yield buffer-like objects with the bytestring "abcdef" in them
2906 bytestring = b"abcdefgh"
2907 yield ZeroCopyBytes(bytestring)
2908 yield ZeroCopyBytearray(bytestring)
2910 items = list(bytestring)
2911 value = int.from_bytes(bytestring, byteorder='little')

Completed in 14 milliseconds