/external/rust/crates/uuid/benches/ |
D | invalid_parse_str.rs | 5 use uuid::Uuid; 10 let _ = Uuid::parse_str(""); in bench_parse_invalid_strings() 11 let _ = Uuid::parse_str("!"); in bench_parse_invalid_strings() 12 let _ = Uuid::parse_str("F9168C5E-CEB2-4faa-B6BF-329BF39FA1E45"); in bench_parse_invalid_strings() 13 let _ = Uuid::parse_str("F9168C5E-CEB2-4faa-BBF-329BF39FA1E4"); in bench_parse_invalid_strings() 14 let _ = Uuid::parse_str("F9168C5E-CEB2-4faa-BGBF-329BF39FA1E4"); in bench_parse_invalid_strings() 15 let _ = Uuid::parse_str("F9168C5E-CEB2-4faa-B6BFF329BF39FA1E4"); in bench_parse_invalid_strings() 16 let _ = Uuid::parse_str("F9168C5E-CEB2-4faa"); in bench_parse_invalid_strings() 17 let _ = Uuid::parse_str("F9168C5E-CEB2-4faaXB6BFF329BF39FA1E4"); in bench_parse_invalid_strings() 18 let _ = Uuid::parse_str("F9168C5E-CEB-24fa-eB6BFF32-BF39FA1E4"); in bench_parse_invalid_strings() [all …]
|
D | valid_parse_str.rs | 6 use uuid::Uuid; 12 let _ = Uuid::parse_str("00000000000000000000000000000000"); in bench_parse_valid_strings() 13 let _ = Uuid::parse_str("67e55044-10b1-426f-9247-bb680e5fe0c8"); in bench_parse_valid_strings() 14 let _ = Uuid::parse_str("67e55044-10b1-426f-9247-bb680e5fe0c8"); in bench_parse_valid_strings() 15 let _ = Uuid::parse_str("F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4"); in bench_parse_valid_strings() 16 let _ = Uuid::parse_str("67e5504410b1426f9247bb680e5fe0c8"); in bench_parse_valid_strings() 17 let _ = Uuid::parse_str("01020304-1112-2122-3132-414243444546"); in bench_parse_valid_strings() 19 Uuid::parse_str("urn:uuid:67e55044-10b1-426f-9247-bb680e5fe0c8"); in bench_parse_valid_strings() 22 let _ = Uuid::parse_str("00000000000000000000000000000000"); in bench_parse_valid_strings() 23 let _ = Uuid::parse_str("00000000-0000-0000-0000-000000000000"); in bench_parse_valid_strings() [all …]
|
D | format_str.rs | 6 use uuid::Uuid; 10 let uuid = Uuid::parse_str("F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4").unwrap(); in bench_hyphen() 20 let uuid = Uuid::parse_str("F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4").unwrap(); in bench_simple() 30 let uuid = Uuid::parse_str("F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4").unwrap(); in bench_urn() 40 let uuid = Uuid::parse_str("F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4").unwrap(); in bench_encode_hyphen() 50 let uuid = Uuid::parse_str("F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4").unwrap(); in bench_encode_simple() 60 let uuid = Uuid::parse_str("F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4").unwrap(); in bench_encode_urn()
|
D | serde_support.rs | 9 use uuid::Uuid; 13 let uuid = Uuid::parse_str("F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4").unwrap(); in bench_json_encode() 25 b.iter(|| serde_json::from_str::<Uuid>(s).unwrap()); in bench_json_decode() 31 let uuid = Uuid::parse_str("F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4").unwrap(); in bench_bincode_encode() 46 b.iter(|| bincode::deserialize::<Uuid>(&bytes).unwrap()); in bench_bincode_decode()
|
/external/rust/crates/uuid/src/ |
D | v5.rs | 4 impl Uuid { impl 21 pub fn new_v5(namespace: &Uuid, name: &[u8]) -> Uuid { in new_v5() argument 47 static FIXTURE: &'static [(&'static Uuid, &'static str, &'static str)] = &[ variable 49 &Uuid::NAMESPACE_DNS, 54 &Uuid::NAMESPACE_DNS, 59 &Uuid::NAMESPACE_DNS, 64 &Uuid::NAMESPACE_DNS, 69 &Uuid::NAMESPACE_URL, 74 &Uuid::NAMESPACE_URL, 79 &Uuid::NAMESPACE_URL, [all …]
|
D | v3.rs | 4 impl Uuid { implementation 22 pub fn new_v3(namespace: &Uuid, name: &[u8]) -> Uuid { in new_v3() argument 47 static FIXTURE: &'static [(&'static Uuid, &'static str, &'static str)] = &[ variable 49 &Uuid::NAMESPACE_DNS, 54 &Uuid::NAMESPACE_DNS, 59 &Uuid::NAMESPACE_DNS, 64 &Uuid::NAMESPACE_DNS, 69 &Uuid::NAMESPACE_URL, 74 &Uuid::NAMESPACE_URL, 79 &Uuid::NAMESPACE_URL, [all …]
|
D | serde_support.rs | 16 impl Serialize for Uuid { implementation 30 impl<'de> Deserialize<'de> for Uuid { implementation 42 type Value = Uuid; in deserialize() 54 ) -> Result<Uuid, E> { in deserialize() argument 55 value.parse::<Uuid>().map_err(de_error) in deserialize() 61 ) -> Result<Uuid, E> { in deserialize() argument 62 Uuid::from_slice(value).map_err(de_error) in deserialize() 71 type Value = Uuid; in deserialize() 83 ) -> Result<Uuid, E> { in deserialize() argument 84 Uuid::from_slice(value).map_err(de_error) in deserialize() [all …]
|
D | lib.rs | 261 pub struct Uuid(Bytes); struct 263 impl Uuid { implementation 265 pub const NAMESPACE_DNS: Self = Uuid([ 271 pub const NAMESPACE_OID: Self = Uuid([ 277 pub const NAMESPACE_URL: Self = Uuid([ 283 pub const NAMESPACE_X500: Self = Uuid([ 556 impl fmt::Debug for Uuid { implementation 563 impl fmt::Display for Uuid { implementation 580 impl fmt::LowerHex for Uuid { implementation 586 impl fmt::UpperHex for Uuid { implementation [all …]
|
D | test_util.rs | 14 pub const fn new() -> Uuid { in new() 15 Uuid::from_bytes([ in new() 21 pub const fn new2() -> Uuid { in new2() 22 Uuid::from_bytes([ in new2()
|
D | winapi_support.rs | 5 impl Uuid { impl 9 pub fn from_guid(guid: guiddef::GUID) -> Result<Uuid, crate::Error> { in from_guid() argument 10 Uuid::from_fields_le( in from_guid() 50 let uuid = Uuid::from_guid(guid).unwrap(); in test_from_guid() 66 let uuid = Uuid::from_guid(guid_in).unwrap(); in test_guid_roundtrip()
|
D | v4.rs | 3 impl Uuid { implementation 27 pub fn new_v4() -> Uuid { in new_v4() 47 let uuid = Uuid::new_v4(); in test_new() 55 let uuid = Uuid::new_v4(); in test_get_version()
|
D | v1.rs | 135 impl Uuid { implementation 216 Uuid::from_fields(time_low, time_mid, time_high_and_version, &d4) in new_v1() 293 let uuid = Uuid::new_v1( in test_new_v1() 313 let uuid2 = Uuid::new_v1( in test_new_v1()
|
/external/perfetto/src/base/ |
D | uuid_unittest.cc | 27 TEST(Uuid, DefaultConstructorIsBlank) { in TEST() argument 28 Uuid a; in TEST() 29 Uuid b; in TEST() 35 TEST(Uuid, TwoUuidsShouldBeDifferent) { in TEST() argument 36 Uuid a = Uuidv4(); in TEST() 37 Uuid b = Uuidv4(); in TEST() 43 TEST(Uuid, CanRoundTripUuid) { in TEST() argument 44 Uuid uuid = Uuidv4(); in TEST() 45 EXPECT_EQ(Uuid(uuid.ToString()), uuid); in TEST() 48 TEST(Uuid, SetGet) { in TEST() argument [all …]
|
D | uuid.cc | 32 Uuid Uuidv4() { in Uuidv4() 34 Uuid uuid; in Uuidv4() 48 Uuid::Uuid() {} in Uuid() function in perfetto::base::Uuid 50 Uuid::Uuid(const std::string& s) { in Uuid() function in perfetto::base::Uuid 55 Uuid::Uuid(int64_t lsb, int64_t msb) { in Uuid() function in perfetto::base::Uuid 59 std::string Uuid::ToString() const { in ToString() 63 std::string Uuid::ToPrettyString() const { in ToPrettyString()
|
/external/rust/crates/uuid/src/parser/ |
D | mod.rs | 19 use crate::{adapter, Uuid}; 51 impl Uuid { implementation 57 pub fn parse_str(mut input: &str) -> Result<Uuid, crate::Error> { in parse_str() argument 198 Ok(Uuid::from_bytes(buffer)) in parse_str() 222 Uuid::parse_str("").map_err(crate::Error::expect_parser), in test_parse_uuid_v4() 230 Uuid::parse_str("!").map_err(crate::Error::expect_parser), in test_parse_uuid_v4() 238 Uuid::parse_str("F9168C5E-CEB2-4faa-B6BF-329BF39FA1E45") in test_parse_uuid_v4() 247 Uuid::parse_str("F9168C5E-CEB2-4faa-BBF-329BF39FA1E4") in test_parse_uuid_v4() 256 Uuid::parse_str("F9168C5E-CEB2-4faa-BGBF-329BF39FA1E4") in test_parse_uuid_v4() 267 Uuid::parse_str("F9168C5E-CEB2F4faaFB6BFF329BF39FA1E4") in test_parse_uuid_v4() [all …]
|
/external/rust/crates/uuid/src/adapter/ |
D | mod.rs | 26 pub struct Hyphenated(Uuid); 34 pub struct HyphenatedRef<'a>(&'a Uuid); 42 pub struct Simple(Uuid); 50 pub struct SimpleRef<'a>(&'a Uuid); 58 pub struct Urn(Uuid); 66 pub struct UrnRef<'a>(&'a Uuid); 68 impl Uuid { implementation 145 uuid: &Uuid, in encode() argument 191 pub const fn from_uuid(uuid: Uuid) -> Self { in from_uuid() 306 pub const fn from_uuid_ref(uuid: &'a Uuid) -> Self { in from_uuid_ref() [all …]
|
D | compact.rs | 9 pub fn serialize<S>(u: &crate::Uuid, serializer: S) -> Result<S::Ok, S::Error> in serialize() argument 19 pub fn deserialize<'de, D>(deserializer: D) -> Result<crate::Uuid, D::Error> in deserialize() argument 25 Ok(crate::Uuid::from_bytes(bytes)) in deserialize() 40 u: crate::Uuid, in test_serialize_compact() 46 u: crate::Uuid::from_slice(uuid_bytes).unwrap(), in test_serialize_compact()
|
/external/rust/crates/uuid/src/builder/ |
D | mod.rs | 21 impl Uuid { impl 44 Uuid::from_bytes([0; 16]) in nil() 75 ) -> Result<Uuid, crate::Error> { in from_fields() argument 84 Ok(Uuid::from_bytes([ in from_fields() 132 ) -> Result<Uuid, crate::Error> { in from_fields_le() argument 141 Ok(Uuid::from_bytes([ in from_fields_le() 163 Uuid::from_bytes([ in from_u128() 185 Uuid::from_bytes([ in from_u128_le() 240 pub fn from_slice(b: &[u8]) -> Result<Uuid, crate::Error> { in from_slice() argument 251 Ok(Uuid::from_bytes(bytes)) in from_slice() [all …]
|
/external/perfetto/include/perfetto/ext/base/ |
D | uuid.h | 28 class Uuid { 30 explicit Uuid(const std::string& s); 31 explicit Uuid(int64_t lsb, int64_t msb); 32 Uuid(); 37 bool operator==(const Uuid& other) const { return data_ == other.data_; } 39 bool operator!=(const Uuid& other) const { return !(*this == other); } 67 Uuid Uuidv4();
|
/external/rust/crates/uuid/ |
D | README.md | 34 [`Uuid`]s. You need to enable the following Cargo features to enable 37 * `v1` - adds the `Uuid::new_v1` function and the ability to create a V1 40 * `v3` - adds the `Uuid::new_v3` function and the ability to create a V3 42 * `v4` - adds the `Uuid::new_v4` function and the ability to randomly 43 generate a `Uuid`. 44 * `v5` - adds the `Uuid::new_v5` function and the ability to create a V5 46 * `serde` - adds the ability to serialize and deserialize a `Uuid` using the 83 use uuid::Uuid; 87 Uuid::parse_str("936DA01F9ABD4d9d80C702AF85C822A8")?; 98 use uuid::Uuid; [all …]
|
D | CONTRIBUTING.md | 1 Contributing to Uuid 3 [Contributing to Uuid]: #contributing-to-uuid argument 5 Thank you for your interest in contributing to the Uuid Project! 74 Pull requests(PRs) are the primary mechanism we use to change Uuid. GitHub itself 90 > Uuid Project has a minimum rust version policy. Currently `uuid` should 102 Documentation is an important part of Uuid. Lackluster or incorrect 125 You can contribute to Uuid in other ways: 137 For people new to Uuid, and just starting to contribute, or even for more
|
D | COPYRIGHT | 1 The Uuid Project is copyright 2013-2014, The Rust Project Developers and 2 copyright 2018, The Uuid Developers.
|
/external/llvm-project/lldb/source/Utility/ |
D | UUID.cpp | 39 llvm::sys::swapByteOrder(debug_info.Uuid.Data1); in fromCvRecord() 40 llvm::sys::swapByteOrder(debug_info.Uuid.Data2); in fromCvRecord() 41 llvm::sys::swapByteOrder(debug_info.Uuid.Data3); in fromCvRecord() 45 return UUID::fromOptionalData(&debug_info.Uuid, sizeof(debug_info.Uuid)); in fromCvRecord()
|
/external/vboot_reference/cgpt/ |
D | cgpt_common.c | 392 guid->u.Uuid.time_low = htole32(time_low); in StrToGuid() 393 guid->u.Uuid.time_mid = htole16(time_mid); in StrToGuid() 394 guid->u.Uuid.time_high_and_version = htole16(time_high_and_version); in StrToGuid() 396 guid->u.Uuid.clock_seq_high_and_reserved = chunk[3] & 0xff; in StrToGuid() 397 guid->u.Uuid.clock_seq_low = chunk[4] & 0xff; in StrToGuid() 398 guid->u.Uuid.node[0] = chunk[5] & 0xff; in StrToGuid() 399 guid->u.Uuid.node[1] = chunk[6] & 0xff; in StrToGuid() 400 guid->u.Uuid.node[2] = chunk[7] & 0xff; in StrToGuid() 401 guid->u.Uuid.node[3] = chunk[8] & 0xff; in StrToGuid() 402 guid->u.Uuid.node[4] = chunk[9] & 0xff; in StrToGuid() [all …]
|
/external/llvm-project/lldb/unittests/ObjectFile/ELF/ |
D | TestObjectFileELF.cpp | 155 UUID Uuid; in TEST_F() local 156 Uuid.SetFromStringRef("1b8a73ac238390e32a7ff4ac8ebe4d6a41ecf5c9"); in TEST_F() 157 EXPECT_EQ(Spec.GetUUID(), Uuid); in TEST_F()
|