| 45 | } |
| 46 | |
| 47 | AFGUID AFCGUIDModule::CreateGUID() |
| 48 | { |
| 49 | ARK_ASSERT_RET_VAL(uid_generator_ != nullptr, NULL_GUID); |
| 50 | |
| 51 | AFBusAddr bus_addr(GetPluginManager()->GetBusID()); |
| 52 | int64_t id = int64_t(bus_addr.zone_id) << (2 * 8) | int64_t(bus_addr.app_type) << (1 * 8) | |
| 53 | int64_t(bus_addr.inst_id) << (0 * 8); |
| 54 | return uid_generator_->GetUID(id); |
| 55 | } |
| 56 | |
| 57 | std::string AFCGUIDModule::ParseUID(const AFGUID& id) |
| 58 | { |
no test coverage detected